$ git clone --bare https://github.com/EXAMPLE-USER/OLD-REPOSITORY.git
$ cd OLD-REPOSITORY.git
$ git push --mirror https://github.com/EXAMPLE-USER/NEW-REPOSITORY.git
//clean up
$ cd ..
$ rm -rf OLD-REPOSITORY.git
$ git clone --bare https://github.com/EXAMPLE-USER/OLD-REPOSITORY.git
$ cd OLD-REPOSITORY.git
$ git push --mirror https://github.com/EXAMPLE-USER/NEW-REPOSITORY.git
//clean up
$ cd ..
$ rm -rf OLD-REPOSITORY.git
For further actions, you may consider blocking this person and/or reporting abuse
Harsh Mishra -
Chamal Randika -
Lyner Lim -
Soft Heart Engineer -
Top comments (0)