取消Git每次拉取、提交推送都要輸入密碼


原因:在初始化配置Git用戶信息時,設置了用戶密碼

解決方式:重置用戶密碼,並設置為空

$ ssh-keygen -p

Enter file in which the key is (/c/Users/xxx/.ssh/id_rsa):  (直接Enter)
Enter old passphrase:(輸入舊密碼)
Key has comment 'xxx@DESKTOP-CNLBIPC'
Enter new passphrase (empty for no passphrase):(直接Enter)
Enter same passphrase again:(直接Enter)
Your identification has been saved with the new passphrase.

*********************************************************************************************************

百度了很多都是這個命令

  $ git config --global credential.helper store

然后,下次再輸入一次 賬號密碼 就可以了

但是在我電腦上就是不管用o(╥﹏╥)o

 

 


免責聲明!

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



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