Hello
I cannot find how to rename a folder/directory using SourceTree. I only see files but no folders.
Could anybody point me in the right direction?
Kind regards,
Mauricio.
Hi Mauricio,
We don't currently support renaming of folders, just files at the moment because of the way we treat the folder structure. I've filed a feature request for you on JAC, although you may want to indicate if this is for Windows or Mac. We'll likely do the same thing on both platforms. Here's the issue: https://jira.atlassian.com/browse/SRCTREE-1729
Hope that helps!
If having issues with this working via the SourceTree interface, this simple command works perfectly.
The 100 means files must be 100% the same, so if you just moved them, they will be... I you moved and renamed, you can also use a high number, say 93, and perhaps that will work for you. Either way, the command will list all of the files and their percent similarity.
I got the tip here: http://hgtip.com/tips/advanced/2009-09-30-detecting-renames-automatically
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I get
Also where in those commands do you specify the new name of the folder?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Johannes, Kieran
Thank you for your answers. I'm running SourceTree on Windows. I'll give a try to the solution proposed by Johannes.
Kind regards,
Mauricio.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, just rename the folder in Explorer then use the Add/Remove button in SourceTree, and Git will pick up that the files have been moved automatically.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think it's not possible at the moment (I searched for it myself in vain ...)
As git is a content tracking system, you can simply move the file within your directory tree using standard explorer actions. Doing so the hash-value (sha1) of the file keeps the same - the only thing that changes is the object tree. Git will automatically recognize the change in the directory tree, which can be commited
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.