Created
May 21, 2019 09:56
-
-
Save ByoungInKim/f47e8956cc2740540e9fc448df2bb18a to your computer and use it in GitHub Desktop.
move git repository with git history
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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