上传github 出现fatal: remote origin already exists.

Published on:

以为上传到github没有问题,今天就遇到一个
我:git remote add origin https://github.com/yhhkln/ijob2017.git
终端:fatal: remote origin already exists.

我:git remote rm origin

成功

我:git remote add origin https://github.com/yhhkln/ijob2017.git

没问题

我:git push -u origin master

没问题

我:git push --all origin

终端:The remote end hung up unexpectedly

不死心

我:git push --all origin

终于成功

Comments

comments powered by Disqus