Git notes

Sync fork

To Sync your fork from the original repository is two steps:

  1. Setup the upstream remote (only have to do this one time)
    • check current config: git remote -v
    • add upstream remote: git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git
  2. Sync fork
    • git fetch upstream
    • git checkout master
    • git merge upstream/master
    • You’re up-to-date locally, then update your fork, git push


Git in Classroom