Skip to content

Instantly share code, notes, and snippets.

@satoruk
Created April 18, 2014 08:56
Show Gist options
  • Save satoruk/11032634 to your computer and use it in GitHub Desktop.
Save satoruk/11032634 to your computer and use it in GitHub Desktop.
GitHubリポジトリのミラー ref: http://qiita.com/satoruk/items/186af9d095d744d15c76
git clone --bare git@ghe1:foo/bar.git
cd web.git/
git remote add ghe2 git@ghe2:foo/bar.git
git fetch --prune origin 'refs/heads/*:refs/heads/*'
git push ghe2 --mirror
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment