码迷,mamicode.com
首页 > 其他好文 > 详细

Git push时不需要总输入密码

时间:2018-10-04 09:47:16      阅读:111      评论:0      收藏:0      [点我收藏+]

标签:方法   github   tor   字符处理   bsp   .com   问题:   字符   ref   

遇到问题:
最近因为换了自己的邮箱密码后,每次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时不需要总输入密码

标签:方法   github   tor   字符处理   bsp   .com   问题:   字符   ref   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!