XP-Dev.com Documentation

Switching URLs for Git

To switch your main origin repository URL, you will need to specify:

$ cd /path/to/git/repository/clone
$ git remote set-url origin <new-url>

For example, if we wanted to switch to https://xp-dev.com/git/my-new-repo then we would use:

$ cd /path/to/git/repository/clone
$ git remote set-url origin https://xp-dev.com/git/my-new-repo

Feel free to contact us if you need any assistance.