fatal: remote origin already exists.报错

在上传本地代码到github仓库时,出现下面这个问题:

 fatal: remote origin already exists.

解决方法:

1.先移除

git remote rm origin

2.再次添加

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

猜你喜欢

转载自www.cnblogs.com/suitongyu/p/12206613.html