Skip to content

Instantly share code, notes, and snippets.

@jeremykohn
jeremykohn / update-master-branch.sh
Created March 9, 2017 10:33
Sync master branch of forked repo with upstream master branch
# Part 1, if necessary:
# Configure a remote for your fork
# https://help.github.com/articles/configuring-a-remote-for-a-fork/
# In Terminal, cd into your local repo and run this command:
git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git
# In general, git remote add upstream <upstream repo>
# Verify by running this command:
git remote -v