Skip to content

Instantly share code, notes, and snippets.

@skyebook
Created September 11, 2012 20:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skyebook/3701793 to your computer and use it in GitHub Desktop.
Save skyebook/3701793 to your computer and use it in GitHub Desktop.
Migrate to new git repository and keep history
# Go to the new repository
cd /path/to/new
# Add the original repository as a remote
git remote add original /path/to/old
# Get the original's branch and merge it into yours
git fetch original/master
git merge original/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment