百度了很多都是這個命令
git config --global credential.helper store
然后,下次再輸入一次 賬號密碼 就可以了。
但是在我電腦上就是不管用,后來找到另一種解決辦法如下:
$ ssh-keygen -p
如果原來有密碼需要先輸入舊密碼,當提示你輸入新的密碼的時候,按enter就可以啦,繼續確認enter就可以
Enter file in which the key is (/Users/never/.ssh/id_rsa):
Enter old passphrase: (注:此處需要輸入舊密碼)
Enter new passphrase (empty for no passphrase): (注:此處直接Enter)
Enter same passphrase again: (注:直接Enter)
Your identification has been saved with the new passphrase.