I used GitHub Desktop with Visual Studio and I have a working remote repo on GitHub (at last!)
Now I would like to move the remote URL from :
https://www.github.com/Joshei/MyBuild.git to a brand new remote repo: https://www.github.com/Joshei/MyGolfRepo.git.
I have done some research and I think this is what I need to do with the new URL:
git config remote.origin.url https://github.com/abc/abc.git
follow this up with: git push origin master?
Is this correct?
I have a few concerns.
Firstly, in the first command is: git config remote.origin.url literal (typed exactly as it is shown there?)
Second, if the second statement is true how is it written, exactly?
Third, Should I use git bash or git cmd?
And fourth, when using the above tool, where do I navigate to, to run the commands?
Of course, I want to do this in a safe manner. I am concerned that since the old (present) repo already has some history on it there could be problems moving it over to the new address.
Thank you, as you can see I have little experience with Github.
Josheir
There are possible suggestions that the above can be accomplished by changing the local git/config. Is this another way, and would I still need the second statement? I am very interested in both ways because it would be highly appreciated.
Thanks again!