Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I change the GitHub URL in Visual Studio?

Tags:

I know this is probably a really dumb question, but I can't figure it out. When you go to your branches, right click on one, and click publish, the first time it asks you for a URL and I put in the wrong one (one that doesn't even exist haha). So now whenever I try to publish a branch, it says it can't find it and I don't know how to change the URL because the option doesn't come up anymore.

like image 213
Oztaco Avatar asked Nov 29 '13 20:11

Oztaco


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. You can configure several common Git settings, as described in the following sections of this article.

How do I change my Git config URL?

Update the URL for Git repositories Run git remote -v to see the current remote URL. Update the remote URL with git remote set-url using the current and new remote URLs.

How do I change the Git settings in Visual Studio?

Visual Studio Git From 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

2013: If you cannot change it through Visual Studio, you can at least look for it in the local config of your repo through the command line:

cd /path/to/your/repo git config --edit 

And you would change it there.


Since 2013, Git has been fully integrated to Visual Studio, and you can access the remote git repository for a Visual Studio solution

https://docs.microsoft.com/answers/storage/temp/45059-test1.png

https://docs.microsoft.com/answers/storage/temp/45105-test2.png

like image 55
VonC Avatar answered Sep 28 '22 19:09

VonC