Git 中文乱码

  1. git config --global i18n.commitencoding utf-8
  2. git config --global i18n.logoutputencoding utf-8
  3. export LESSCHARSET=utf-8

Git Bash中Git log中文乱码——终极解决方案

git clone Connection refused

Failed to connect to 127.0.0.1 port 8123: Connection refused
是代理出错了,取消代理即可

  1. # 查询是否使用代理:
  2. git config --global http.proxy
  3. git config --global https.proxy
  4. # 通过git取消代理设置
  5. $ git config --global --unset http.proxy
  6. $ git config --global --unset https.proxy
  7. # 查询系统环境有没有使用代理
  8. env|grep -I proxy
  9. # 通过系统命令取消代理
  10. $ unset http_proxy
  11. $ unset ftp_proxy
  12. $ unset all_proxy
  13. $ unset https_proxy
  14. $ unset no_proxy
  15. # 这样也可以
  16. export http_proxy=""
  17. export https_proxy=""
  18. export HTTP_PROXY=""
  19. export HTTPS_PROXY=""