您当前的位置: 首页 >  彭世瑜 git

Git:git pull每次都要求输入用户名和密码

彭世瑜 发布时间:2019-04-17 15:39:19 ,浏览量:1

git pull 每次都要求输入用户名和密码

全局配置

git config --global credential.helper store

或者局部配置

git config credential.helper store

查看git配置

git config --list

如果有多个账号,可能会出现403报错 这时看下文件,如果有多个账号,可以尝试删除

rm ~/.git-credentials
解决办法

修改项目目录下的配置文件

$ vim ./.git/config

[remote "origin"]
url = https://:@e.coding.net/project/demo.git
$ more ~/.git-credentials
https://:@e.coding.net

参考: git 为不同的项目设置不同的用户名和邮箱 git ,报403错误,完美解决方案

关注
打赏
1688896170
查看更多评论

彭世瑜

暂无认证

  • 1浏览

    0关注

    2727博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文
立即登录/注册

微信扫码登录

0.0771s