Reputation: 1002
Switching from github to gitlab. Imported all my repos.
Now I want to continue pushing my code only to gitlab. How do I make this happen?
I updated my .gitconfig
file to use this, but it didn't change anything:
[url "[email protected]/"]
insteadOf = [email protected]/
Upvotes: 4
Views: 2190
Reputation: 3987
Do you have a git repo on GitLab?
Your url = <url to your git repo>
should be pointing to an existing git repo. Also [email protected]
couldn't possibly be your git repo.
Anyway, just make a repo on GitLab and point that url in your .gitconfig
You can follow this tutorial to make a new project on GitLab. After that copy the url from the browser into the .gitconfig
. (add a .git extension to the end)
Upvotes: 4