Change git remote URL

Sometime, your git server may move to new hostname or IP address. You have to modify remtote URL in your local git repository.

Commands are below.

$ git remote set-url origin <new url>


Or modify your .git/config file.


After modified URL, it will be worked as before.

To Check remote URL, uses below command.

$ git remote -v




你可能感兴趣的:(server,git,url)