Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change the URL to a remote Git repository via Visual Studio 2013?

Tags:

Is it possible to modify the URL for a remote Git repository via Visual Studio 2013 if it happens to be set incorrectly? I'm getting the "famous" (and not very helpful) error that says:

"blah, blah...This transport isn't implemented. Sorry."

Is it possible to make this change via the command prompt?

I know the about the command git remote remove but the name of the config should follow and I don't know how to determine what it is.

like image 775
Arman Avatar asked Feb 05 '14 11:02

Arman


People also ask

How do I change my Git repository URL in Visual Studio?

To configure Git settings in Visual Studio, choose Settings from the top-level Git menu. Choose Git Global Settings or Git Repository Settings to view and configure global-level or repository-level settings.

How do I add a URL to a Git repository?

To add a new remote, use the git remote add command on the terminal, in the directory your repository is stored at. The git remote add command takes two arguments: A unique remote name, for example, “my_awesome_new_remote_repo” A remote URL, which you can find on the Source sub-tab of your Git repo.

How do I change the git settings in Visual Studio?

Visual Studio GitFrom the Git menu, choose Git > Settings and then select the Git Global Settings view. That view contains the name and email settings for the current user. Or, choose Git Repository Settings > General to edit the name and email settings for the current Visual Studio project repo.


1 Answers

You might want to open the .git\config as a plain file from Visual Studio and edit its contents.

You'll see that there is a section defining the remote called origin:

[remote "origin"]     url = git://foo.org/blah.git     fetch = +refs/heads/*:refs/remotes/origin/* 

If you are using HTTPS (SSL) as a transport layer, then you might want to add:

[http]     sslVerify = false 

if you are using a self-issued SSL certificate on the server.

like image 167
Pierre Arnaud Avatar answered Oct 07 '22 00:10

Pierre Arnaud