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

更换git用户名或密码

时间:2018-07-19 17:36:15      阅读:168      评论:0      收藏:0      [点我收藏+]

标签:ber   --   class   需要   attr   ruby   art   配置文件   config   

Windows10下更换Git用户名或密码:https://jingyan.baidu.com/article/642c9d3435a6e9644a46f732.html

 

git清除用户名密码

git config --system --unset credential.helper

 

Git保存用户名和密码

Git保存用户名和密码

1、进入Git 配置文件。

~$ vim ~/.gitconfig   

2、修改配置文件,添加下面这一行。

[credential]  
    helper = store  
或者
git config --global credential.helper store

使用的时候,在输入一次用户名和密码之后,就不需要再提交用户名和密码。

更换git用户名或密码

标签:ber   --   class   需要   attr   ruby   art   配置文件   config   

原文地址:https://www.cnblogs.com/qq1069284034/p/9336633.html

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