Just wanted to add, as what i found, it is not straight forward sometimes, especially when you are changing the "folder name" as well as it's "location". If you are doing both, you have to go step by step: 1) Change only the location first ( not the folder name), and relocate it in source tree app. 2) Now change the name and again relocate it in source tree app. It sounds strange, but i found that you cannot do both at the same time. Otherwise it won't be able to relocate.
Steve, under Windows 7, would it behave just the same moving folder using file explorer? Also, I'm not sure this is the same I want to do. Because of the way I'm organizing my data, I'd like to have the local repository (.git folder) in one place and the working copy in another. Is that possible?
Another +1 for the ability to manually force the location change. Sometimes I make a mistake choosing the new folder, and I'd like to be able to rectify that mistake without jumping through goofy hoops.
If you are experiencing the loop bug where SourceTree repeatedly shows you a pop up prompting you to select the new location of a repository that you moved:
I was also experiencing this issue recently. no change to folder name, I simply moved all of my repositories into a subfolder called Scripts. It was frustrating, but the work-around is simple.
1.)Double click the broken bookmark to select the correct path. Make sure you select the correct folder for your repository. It will loop; simply press cancel. Now your bookmark has the proper path associated, even though it doesn't know it yet.
2.) In SourceTree, go to File -> Open... or simply press Ctrl + O.
3.) Select the repository folder and click Open
4.) Because the bookmark and the path you just opened are the same, SourceTree remembers how cool it is and everything is back to normal.
I have found myself in an "update loop" whenever I try to rename or relocate no matter what I do I just keep getting the popup to change the folder. When I select the changed folder it seems to not take and just keeps asking me to choose my new folder;
I faced this problem on Mac ( but not on Windows ). You need to make sure, you don't rename the folder in the 1st step after moving it into the new location. Once you have moved your source folder to new location, link it to the source tree. It will accept. After then, you can rename the folder if you want.
If you are moving the content instead of folder, then make sure, you also select the .git file ( hidden on mac ). For this reason, it's better you move the source folder instead of content. Because that will automatically be having the .git file within it.
Is there any way to update all the repositories in a sourcetree directory? I found a file name length problem when trying to clone libgdx, so I shortened the path for all my open source repos. Now I have a few dozen repos in SourceTree that point to the old path. With this method I have to manually open each repo in SourceTree in order to get the prompt, and then point the repo to the correct location.
For each repo. one at a time.
Hi folks, While the full post is over on our blog I'd like to share the dark theme we've got planned for 2019 here directly as well to keep the discussion going. The ...
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