Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,359,836
Community Members
 
Community Events
168
Community Groups

Move project to different folder on same development PC

I use Sourcetree and I have a project in a folder under VS2015 that I want to copy in its entirety to the same name so it will be under VS2017 on the same dev PC. I could simply copy the entire project folder (including .git) of course, and I want to keep the same remote origin destination. Then the original project source under VS2015 will become dormant and eventually be deleted. What's the best way to move/copy a project folder?

1 answer

1 accepted

0 votes
Answer accepted
Mikael Sandberg Community Leader Apr 02, 2019

Hi Stephen,

Welcome to the Atlassian Community.

You can simply just copy/paste the folder to where you want the copy to be. Once that is done, in Sourcetree open a new tab and click Add and locate the new copy, and I would recommend also giving the bookmark (the name field) a different name so you can easily distinguish it from the VS2015 repository.

Hi Mikael,

Thank you for answering my question, and so promptly. Your advice sounds quite reasonable and straightforward. Once having added the new local repository in VS2017 I would then connect it to the (same) remote as in VS2015.  I was wondering if I could just modify the path of the old local repo to point to the new one, but I couldn't find any edit function in Sourcetree that lets you modify the local repo path. Also couldn't find a way to edit the tab caption text (bookmark).  If that were possible I was thinking of just doing the copy/paste of the project, and then modify the current Sourcetree tab to point to the local repository to the new folder. Can that be done?

If you move a repository that already has a bookmark in Sourcetree, it will notice it and ask you if you want to update the path or remove the bookmark. So you could just move your VS2015 to another path, open Sourcetree and point to the new path instead or doing a copy/paste.

To edit the bookmark in Sourcetree, just open a new tab, locate the bookmark, right-click on it and delete it. Then click Add and recreate the bookmark with the new name.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Sourcetree

Bug Fix: Sourcetree for Windows authentication error when updating to app password

Hello Sourcetree users!!! With the recent removal of Bitbucket Cloud account passwords for app passwords (please see our Bitbucket Cloud community post for details on why we made this change for se...

78,666 views 134 29
Read article

Atlassian Community Events