One - One Code All

Blog Content

git更换origin,解决git fatal: 远程 origin 已经存在。

Linux-Mac   2012-08-05 09:10:37

将远程配置删除,重新添加。

git remote rm origin

git remote add origin https://github.com/***/***.git

再次提交文件即可正常使用


先commit ,再push。


上一篇:git fetch与git pull的区别
下一篇:Linux常用命令find

The minute you think of giving up, think of the reason why you held on so long.