Changing remote repository path on SourceTree using Git or Mercurial

Still need help?

The Atlassian Community is here for you.

Ask the community


This article should help users to understand how to change remote repository path via SourceTree, both in Git and Mercurial.


To push contents from your local repository to a remote repository (whether hosted on Cloud or your own server.), please perform the following steps:


  1. Click on the "Settings" button on the toolbar to open the Repository Settings window.
  2. Click "Add" to add a remote repository path to the repository. A "Remote details" window will open.
  3. Enter a name for the remote path.
  4. Enter the URL/Path for the remote repository
  5. Enter the username for the hosting service for the remote repository.
  6. Click 'OK' to add the remote path.
  7. Back on the Repository Settings window, click 'OK'. The new remote path should be added on the repository now.
  8. If you need to edit an already added remote path, just click the 'Edit' button. You should be directed to the "Remote details" window where you can edit the details (URL/Path/Host Type) of the remote path.
  9. To remove a remote repository path, click the 'Remove' button
Last modified on Feb 26, 2016

Was this helpful?

Provide feedback about this article
Powered by Confluence and Scroll Viewport.