github每次push代码时都要输入用户名和密码的解决方法

来源:互联网 发布:剑灵刺客捏脸数据图 编辑:程序博客网 时间:2024/05/19 00:08

解决方法:

方法一:

1)在个人电脑的用户目录创建一个文本文件,名为.git-credentials,关于用户目录:

a、windows:C/Users/username

b、mac:/Users/username

c、Linux:/home/username

2)向.git-credentials文件中添加一下内容:

https:{username}:{password}@github.com

3)修改git配置

a、执行命令 git config --global credential.helper store


over!


阅读全文
0 0
原创粉丝点击