Git:git pull每次都要求输入用户名和密码
        【摘要】     git pull 每次都要求输入用户名和密码 
全局配置 
git config --global credential.helper store
1 
或者局部配置 
git config credential.helper store
1 
查看git配置 
git config --list
1 
如果有多个账号,可能会出现403报错 这时看下文件,如果有多个账号...
    
    
    
    git pull 每次都要求输入用户名和密码
全局配置
git config --global credential.helper store
  
 - 1
 
或者局部配置
git config credential.helper store
  
 - 1
 
查看git配置
git config --list
  
 - 1
 
如果有多个账号,可能会出现403报错
 这时看下文件,如果有多个账号,可以尝试删除
rm ~/.git-credentials
  
 - 1
 
解决办法
修改项目目录下的配置文件
$ vim ./.git/config
[remote "origin"]
url = https://<username>:<password>@e.coding.net/project/demo.git
  
 - 1
 - 2
 - 3
 - 4
 
$ more ~/.git-credentials
https://<username>:<password>@e.coding.net
  
 - 1
 - 2
 
文章来源: pengshiyu.blog.csdn.net,作者:彭世瑜,版权归原作者所有,如需转载,请联系作者。
原文链接:pengshiyu.blog.csdn.net/article/details/89357456
        【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
            cloudbbs@huaweicloud.com
        
        
        
        
        
        
        - 点赞
 - 收藏
 - 关注作者
 
            
           
评论(0)