Linux之解決每次git pull/git push都需輸入密碼設置


操作命令:

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

 

over!!!

參考博客:https://www.cnblogs.com/orzlin/p/5613310.html


免責聲明!

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



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