Skip to content

Instantly share code, notes, and snippets.

@localnerve
Forked from giosakti/gist:3027026
Last active August 29, 2015 14:26
Show Gist options
  • Save localnerve/c7081a619878ef5b6f50 to your computer and use it in GitHub Desktop.
Save localnerve/c7081a619878ef5b6f50 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