解決git每次提交推送都要輸入密碼


百度了很多都是這個命令

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.


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM