Can someone explain in simple terms what git’s origin is and why it’s called “origin”?
As I understand it, it’s a remote repository alias. So why not call it, “github” or “dropbox” or whatever place you’re pushing to or pulling from? It seems to make more sense to me that way.
ie: $ git push github master
Is there any detriment to using a more descriptive alias name? Or am I not understanding origin in general?
Thanks!
You could certainly arrange for a remote repository with any name you like, but GIT automatically adds an
originwhenever you clone a repository. It’s customary to leave the ‘official’ repository under the alias ‘origin’ just for consistency.