【发布时间】:2019-11-22 20:48:33
【问题描述】:
我试过了
git remote add origin https://github.com/rezaee/confusion-last.git
得到了
fatal: remote origin already exists.。
然后尝试
git push -u origin master
但是得到了:
warning: redirecting to https://github.com/rezaee/confusion.git/
To http://github.com/rezaee/confusion.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'http://github.com/rezaee/confusion.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
所以我尝试了
git remote remove https://github.com/rezaee/confusion-last.git
但是得到了
fatal: No such remote: 'https://github.com/rezaee/confusion-last.git'.
这怎么可能?
【问题讨论】:
标签: github git-push git-remote