What is the difference between origin and upstream on GitHub?
问题 What is the difference between origin and upstream on GitHub? When a git branch -a command is done, some branches have a prefix of origin ( remotes/origin/.. ) while others have a prefix of upstream ( remotes/upstream/.. ). 回答1: This should be understood in the context of GitHub forks (where you fork a GitHub repo on GitHub before cloning that fork locally). upstream generally refers to the original repo that you have forked (see also "Definition of “downstream” and “upstream”" for more on