使用git pull或者git push每次都需要輸入用戶名和密碼很不人性化,耽誤時間
git config --global credential.helper store
git pull /git push (這里需要輸入用戶名和密碼,以后就不用啦)
push你的代碼 (git push), 這時會讓你輸入用戶名和密碼, 這一步輸入的用戶名密碼會被記住, 下次再push代碼時就不用輸入用戶名密碼 ! 這一步會在用戶目錄下生成文件.git-credential記錄用戶名密碼的信息。
比如:
git不用每次輸入用戶名和密碼 https://blog.csdn.net/LosingCarryJie/article/details/73801554