Join 500+ Software Testing professionals. Solve problem and get your problem solved. Register Now!

how to change existing git origin repository URL

Solved 1 Answers 29 Views Programming
0 1
I have cloned a git repository from github. Now I need to push this repository to private server. How do I do that?

1 Answer

Best answer

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://
    fetch = +refs/heads/*:refs/remotes/origin/*

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

    sslVerify = false

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


answered by
selected by

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.