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?
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.
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.
Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events