Skip to content

Instantly share code, notes, and snippets.

@iamclaytonray
Last active January 12, 2018 10:37
Show Gist options
  • Save iamclaytonray/7a143ca3e8dd96fe853669a2258a73d4 to your computer and use it in GitHub Desktop.
Save iamclaytonray/7a143ca3e8dd96fe853669a2258a73d4 to your computer and use it in GitHub Desktop.
Working with git

Clone your fork.

git clone git@github.com:YOUR_USERNAME/FORKED_REPO.git

Add the remote upstream to git

git remote add upstream git://github.com/ORIGIN_USERNAME/ORIGIN_REPO.git

Fetch changes from upstream

git fetch upstream

Pull changes from one of the upstream's branches

git pull upstream BRANCH_NAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment