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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

570 views 1 2
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