Skip to content

Instantly share code, notes, and snippets.

@chenziliang
Created December 25, 2017 06:38
Show Gist options
  • Save chenziliang/167245520ca2b86745aefb961b6091a8 to your computer and use it in GitHub Desktop.
Save chenziliang/167245520ca2b86745aefb961b6091a8 to your computer and use it in GitHub Desktop.
mirror repo
$ git clone --mirror https://github.com/exampleuser/repos
$ cd repository-to-mirror.git
$ git remote set-url --push origin https://github.com/exampleuser/mirrored
$ git fetch -p origin
$ git push --mirror
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment