今天在linux服务器上修改了git的密码,结果在pull的时候一直报fatal: repository 'http://xxx.xxx.com/xxx/xxx.git/' not found,查了半天各种改都没解决,最后查到执行这个命令:git config --global --unset credential.helper,完了再执行git pull命令时就让输入用户名密码了。也可以用命令git remote set-url origin http://username:passwd@xxxx.xxxx.com/xxxx/xxxxx.git设置后,每次执行命令时就不用再输入用户名密码了。

posted on 2022-08-24 18:17  linkenzhou  阅读(231)  评论(0编辑  收藏  举报