如果每次 pull 或者 push 都要輸入密碼很浪費時間,直接執行以下的命令:
git config --global credential.helper store
然後執行一次 push 操作,輸入一次密碼之後,你的用戶名和密碼就會被保存到 ~/.git-credential
文件中,你可以在 push 後打開這個文件看看:
vim ~/.git-credential
如果每次 pull 或者 push 都要輸入密碼很浪費時間,直接執行以下的命令:
git config --global credential.helper store
然後執行一次 push 操作,輸入一次密碼之後,你的用戶名和密碼就會被保存到 ~/.git-credential
文件中,你可以在 push 後打開這個文件看看:
vim ~/.git-credential