git跳过用户名和密码验证


$ git config credential.helper store
$ git push https://github.com/repo.git(你的git仓库地址)

Username for 'https://github.com': <USERNAME>
Password for 'https://USERNAME@github.com': <PASSWORD>

如果是在其他电脑上使用,还可以使用缓存期进行设置到期时间

git config --global credential.helper 'cache --timeout 7200'

单位是秒,7200秒(2个小时)后失效


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM