Home > Blockchain >  how to push in to gitlab instead of github
how to push in to gitlab instead of github

Time:05-24

I cloned the files in gitlab, created a new branch, edited the files and finally pushed it. But somehow it created a new repository, a new branch in my github and has nothing in my gitlab. What should i do

CodePudding user response:

Check your git remote -v output in the root folder of your local cloned repository.

If you had "cloned the files in gitlab", the URL should have been a GitLab one (https://gitlab.com/... or an SSH git@gitlab:...)

If not, you might see a GitHub URL.

Changing it to an existing remote GitLab one would be:

git rmeote set-url origin https://gitlab.com/You/YourRepo
  • Related