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

0
how to change existing git origin repository URL

Solved 1 Answers 25 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

0
Best answer
0

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://foo.org/blah.git
    fetch = +refs/heads/*:refs/remotes/origin/*

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

[http]
    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.
...