I had a repository on GitLab which I also published on GitHub.
As of now all the Git commands I am using are making changes on GitLab. However, I want those commits on GitHub.
I tried the command:
git remote set-url origin git@github.com:repo-url
Can someone suggest me how to set the URL so that commands would work on GitHub and not GitLab?