Moved local repository

Hi all,

I have moved the directory where my local files are stored for one of my projects. How do I tell SourceTree that the files it should be comparing to the remote repository files, are now in a different folder?

2 answers

1 accepted

You can simply add a new working copy since remote info is stored in the repository itself it should work automatically.

This worked, thanks. Obvious after the fact.

Just double-click on the bookmark to open it as usual (it should be labelled with 'Repository moved or deleted'), and select the option to re-locate the repo.

The directory hasn't moved, I've just moved my project files out of the directory.

I used to have the project files in the root of my local Apache installation. I have since moved the project files to a subdirectory of that root. So the directory still exists, just with none of the project files in it. Thus, the repository isn't labelled with "Repository moved or deleted".

Suggest an answer

Log in or Join to answer
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

269 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot