Created
February 17, 2014 16:12
-
-
Save takeoverjp/9053518 to your computer and use it in GitHub Desktop.
gitでリモートリポジトリを同期する ref: http://qiita.com/takeoverjp/items/a97da80acf8349f08166
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
| git clone --mirror /homge/GIT/sample-repo1.git | |
| cd mirror-repo1 | |
| git remote add origin2 /home/GIT/sample-repo2.git | |
| git push origin2 --mirror |
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
| git fetch --all | |
| git push origin2 --mirror |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment