Skip to content

Instantly share code, notes, and snippets.

@laguiar
Created August 3, 2010 18:36
Show Gist options
  • Save laguiar/506889 to your computer and use it in GitHub Desktop.
Save laguiar/506889 to your computer and use it in GitHub Desktop.
<master_branch>$ git checkout work
<work_branch> $ git remote add new_remote git@github.com:repo/project.git
<work_branch> $ git fetch new_remote
<work_branch> $ git checkout --track -b merge_branch new_remote/master
<merge_branch> $ git merge work
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment