Git Origin Vs Upstream

Using Git everyday and pull push everyday, let’s spend time to undestand the concept origin and upstream fully.

You can edit the upstream and origin in this file for your local repo only:

1
2
# see local config in your repo
vim .git/config

Resource

Difference Upstream and Origin

  • upstream generally refers to the original repo that you forked from
  • origin is your fork: your own repo on GitHub, clone of the original repo of GitHub
0%