1.git pull時報錯 fatal: unable to access ‘https://github.com/…/.git’: Could not resolve host: github.com
執行以下命令
git config --global --unset http.proxy
git config --global --unset https.proxy
2.git push時報錯error: failed to push some refs to ‘git@xxx’
服務器該目錄下 .git/沒有權限
執行 chmod -R 777 .git/
3. GitHub下載clone指定分支tag代碼
git clone -b [tag] [https://github.com/xxx.git]
- 解決 git pull/push 每次都要輸入用戶名密碼的問題
輸入用戶名、密碼後執行
git config --global credential.helper store