Skip to content

Instantly share code, notes, and snippets.

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 ByoungInKim/f47e8956cc2740540e9fc448df2bb18a to your computer and use it in GitHub Desktop.
Save ByoungInKim/f47e8956cc2740540e9fc448df2bb18a to your computer and use it in GitHub Desktop.
move git repository with git history
# 1. Copy histroy from source repository
$ git clone --mirror [source repository]
# 2. move dir
$ cd [source repository].git
# 3. set dest repository
$ git remote set-url --push origin [dest repository]
# 4. push to dest repository
$ git push --mirror
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment