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.
-
Are you using Git Extensions or VS tools for Git? (the two are illustrated in stackoverflow.com/a/20292542/6309)– VonCNov 29, 2013 at 20:23
-
@VonC I'm using the VS Tools for Git– OztacoNov 29, 2013 at 20:28
3 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
-
1@bukko indeed. As I mentioned here (stackoverflow.com/a/25107818/6309), having the git shell installed is as easy as unzipping anywhere you want the latest portable archive for msysgit: github.com/msysgit/msysgit/releases/download/…– VonCMar 12, 2015 at 13:51
- Go to your repo directory at C or D disk.
- Change your directory settings to display hidden files from top of Windows Explorer.
- Open .git directory, then display "config" file.
- Open "config" file and change "[remote "origin"] url" row which is like; " ... [remote "origin"] url = https://ishakkulekci-x@bitbucket.org/x/xxx.git ... "
- using new git repo address at Visual Studio
-
1This should be the accepted answer IMO. This is the most straightforward way to change the GitHub URL– NathileoJun 18, 2021 at 3:36