How do I change the GitHub URL in Visual Studio?

git, github, visual-studio, visual-studio-2012

Solution

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

Problem

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.

Original source

Related problems