操作命令:
//執行這兩條命令
cd / git config --global credential.helper store
執行完命令之后會在.gitconfig文件中多加紅色字體
[user] name = your name email = your email [credential] helper = store
使用:
cd到項目目錄,執行git pull,會提示輸入賬號密碼。輸完這一次以后git pull或git push就不在需要輸入密碼了(會在根目錄生成一個 .git-credentials 文件)
over!!!
