Move project to different folder on same development PC

stephenrosenbaum
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 2, 2019

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
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 2, 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.

stephenrosenbaum
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 2, 2019

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?

Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 3, 2019

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
AUG Leaders

Atlassian Community Events