Treich Treich - 2 months ago 22
Git Question

Synchronizing Repositories from Local Storage

I have a local repository that has become out of sync with the server's repository. This happened because the local repository was cloned using SSH but as I've seen online Visual Studio only supports HTTP. I have created a branch (unpublished) made some changed, put those into a commit but now I can't push that commit to the GitLab server. When I try to publish the branch or push the commit in Visual Studio I get


An error occurred. Detailed message: An error was raised by libgit2. Category = Net (Error).
This transport isn't implemented. Sorry


The suggestion online is to go into the configuration and add an
http://
to the url in the git's config file. When I do that I get this error


An error occurred. Detailed message: An error was raised by libgit2. Category = Net (Error).
Invalid URI: Invalid port specified.


So I was looking into git bash that was included with Git for Windows and I was wondering if there was a set of commands I can try to sync the repositories.

The solution doesn't have to involve git bash it's just where I'm at for trying to solve my problem.

Answer

When you say you added http:// to the URL in your config file is that all you did? Because an SSH URL and HTTP are different so you would want to make sure you're using the right URL