这里记录一下使用git时遇到的各种问题和解决方法
-
git clone
时遇到这个问题:Failed to connect to github.com port 443: Timed out
可以使用这个命令解决:
git config --global --unset http.proxy
-
git add
时遇到这个问题:warning: LF will be replaced by CRLF in demo/demo.py. The file will have its original line endings in your working directory
可以使用这个命令解决:
git config --global core.autocrlf true