Skip to content

Instantly share code, notes, and snippets.

@takeoverjp
Created February 17, 2014 16:12
Show Gist options
  • Select an option

  • Save takeoverjp/9053518 to your computer and use it in GitHub Desktop.

Select an option

Save takeoverjp/9053518 to your computer and use it in GitHub Desktop.
gitでリモートリポジトリを同期する ref: http://qiita.com/takeoverjp/items/a97da80acf8349f08166
git clone --mirror /homge/GIT/sample-repo1.git
cd mirror-repo1
git remote add origin2 /home/GIT/sample-repo2.git
git push origin2 --mirror
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