Skip to content

Instantly share code, notes, and snippets.

@marceloserpa
Created June 1, 2020 23:17
Show Gist options
  • Save marceloserpa/5cf53ec396b088643d3b7a26c1c1978e to your computer and use it in GitHub Desktop.
Save marceloserpa/5cf53ec396b088643d3b7a26c1c1978e to your computer and use it in GitHub Desktop.
$ git clone --bare https://github.com/exampleuser/old-repository.git
$ cd old-repository.git
$ git push --mirror https://github.com/exampleuser/new-repository.git
$ cd ..
$ rm -rf old-repository.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment