/執行這兩條命令
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 文件)