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
1 Answer
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 remote set-url origin https://gitlab.com/You/YourRepo
git remote add origin [email protected]/UserRepo.git.git config --list --show-originto your question in case there's something odd with a global setting for a push URL. Other than that the answer is basically the same as "how do I drive to Tokyo instead of Osaka": you just choose that as your destination.