Home > database >  How can i move repo into different origin
How can i move repo into different origin

Time:01-17

I have old repo in server which previous developer has access to it on gitlab.

And he no longer works here and I don't have access to it.

But i have access to server where repo is clone

So how can i clone it to new git repo with my access to it?

CodePudding user response:

Push only master

git push --set-upstream [email protected]:username/new-repo.git master

Push all branches

git push --all --set-upstream [email protected]:username/new-repo.git 

You can also add the --tags flag to push your repo tags.

  •  Tags:  
  • Related