I have my project on GitHub at some location, git@github.com:myname/oldrep.git
.
Now I want to push all my code to a new repository at some other location, git@github.com:newname/newrep.git
.
I used the command:
git remote add origin git@github.com:myname/oldrep.git
but I am receiving this:
fatal: remote origin already exists.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…