Skip to content

Instantly share code, notes, and snippets.

@birchestx
Created December 22, 2013 22:08
Show Gist options
  • Save birchestx/8089049 to your computer and use it in GitHub Desktop.
Save birchestx/8089049 to your computer and use it in GitHub Desktop.
git remote -v
# List the current remotes
# origin https://github.com/user/repo.git (fetch)
# origin https://github.com/user/repo.git (push)
git remote add upstream https://github.com/otheruser/repo.git
# Set a new remote
git remote -v
# Verify new remote
# origin https://github.com/user/repo.git (fetch)
# origin https://github.com/user/repo.git (push)
# upstream https://github.com/otheruser/repo.git (fetch)
# upstream https://github.com/otheruser/repo.git (push)
git fetch upstream
git checkout master
git merge upstream/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment