在github中为角度项目托管页面时,远程起源已经存在

时间:2019-06-13 08:15:03

标签: github

当托管页面“远程来源已经存在”时,如何在Github上更正此错误。

我已经使用了这些命令

git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/Ibanez1408/ietc-log-reader.git
git push -u origin master

但是一旦我进入“第一次提交”,就会出现此错误:

On branch master
Your branch is up to date with 'origin/master'.

所以我改用它

git add .

它会执行某些操作,但是当我输入

git remote add origin https://github.com/Ibanez1408/ietc-log-reader.git

我得到了错误:

fatal: remote origin already exists.

我在做什么错?如何重置所有内容,以便可以按照所关注的教程进行操作。

0 个答案:

没有答案