公司换机房,Git服务器IP地址改变,导致fatal: remote origin already exists

解决方法

1、先查询项目远程连接地址

git remote -v

2、重置地址

git remote set-url origin https://github.com/yourname/learngit.git

3、再push

git push origin master 

参考:

https://www.jianshu.com/p/3380ec281729

 posted on 2021-12-22 14:30  二月无雨  阅读(95)  评论(0)    收藏  举报