Skip to content

Instantly share code, notes, and snippets.

@rtorresve
Created September 26, 2019 19:51
Show Gist options
  • Save rtorresve/b1e90f89cd1ef65f815c09407306d1ca to your computer and use it in GitHub Desktop.
Save rtorresve/b1e90f89cd1ef65f815c09407306d1ca to your computer and use it in GitHub Desktop.
Move a branch to a new remote url with all its branchs and commit history.
$ git clone --mirror [email protected]:arquitectura.ss/solutions-management-app-mayorista-backend.git BE
$ cd BE
$ git remote set-url --push origin [email protected]:walmartretail/cvm-api.git
$ git push --mirror
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment