You didn't do anything bad or irreparable.
A remote Git repo has a URL. That's a pain to use, so it's nice to make up a name for it. That name is absolutely arbitrary. Typically we use the name origin
for the direct corresponding remote Git repo and the name upstream
for the original repo from which our repo is a fork, but you could use heybaburiba
and it wouldn't make the slightest difference. It's just a name that you are using as a shorthand.
So if you happen to say
git remote add upsteam <the Git URL>
you're just assigning that URL an arbitrary name upsteam
. That's perfectly fine, and you are then able to say things like git fetch upsteam
, git push -u upsteam master
, and all other commands that expect the name of a remote.
If you're sorry you said that, delete that remote and create a remote with a different name. It's only a name!
If you're curious about what names you've defined, just say
git remove -v
and you will see a list of names and URLs.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…