Linux下git push、git pull等指令需要輸入賬號密碼 - 免除設置


打開終端按順序執行下面的指令:

1.cd ~

 

2.touch .git-credentials

 

3.vim .git-credentials 然后在打開的文件里面輸入

https://{username}:{password}@github.com

其中{username}{passworld}更換成自己的賬號密碼,保存並退出。

 

4.git config --global credential.helper store

 

5.打開~/.gitconfig文件,會發現多了一項:

    [credential]

         helper = store

 

完成設置

 






免責聲明!

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



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