首页 > 其他 > 详细

Git push时不需要总输入密码

时间:2018-10-04 07:17:21      阅读:137      评论:0      收藏:0      [点我收藏+]

遇到问题:
最近因为换了自己的邮箱密码后,每次push的时候都需要填写密码,账号。很烦

解决方法:

[戎马半生的答案] (http://www.cnblogs.com/zhaoyu1995/p/6508927.html)

亲测有效的方法:、

  • 在当前用户目录下 新建 .git-credentials文件
vim .git-credentials

( --> %28    ) --> %29    * --> %2A    + --> %2B    , --> %2C

/ --> %2F    : --> %3A    ; --> %3B    = --> %3D    ? --> %3F

@ --> %40    [ --> %5B    ] --> %5D

http://liuhongchen:12345%21@github.com
  • 保存后退出执行,将该用户名和密码在.gitconfig文件中存储
git config --global credential.helper store

Git push时不需要总输入密码

原文:https://www.cnblogs.com/hiluna/p/9740967.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!