>

GIT: Change Master of Orphaned Repo

When a Origin Master becomes unavailable create a new repo for the master and then on the client:

$ git remote rm origin
$ git remote add origin gitpriv@backwater.techmentor.com.com:gitrepo/provisioning/ubuntu.git
$ git config master.remote origin
$ git config master.merge refs/heads/master
$ git push --set-upstream origin master

and maybe

$ git push --all
$ git push --tags

banner ad

Comments are closed.