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