Skip to content

Instantly share code, notes, and snippets.

@giosakti
Created July 1, 2012 05:52
Show Gist options
  • Save giosakti/3027026 to your computer and use it in GitHub Desktop.
Save giosakti/3027026 to your computer and use it in GitHub Desktop.
[Git] Fetch & merge upstream/downstream repo
git remote add <upstream>/<repo> ssh://git@bitbucket.org/<upstream>/<repo>.git
git fetch <upstream>/<repo>
git checkout master
git merge remotes/<upstream>/<repo>/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment