How can I show the log History of an entire directory so that I see only commits affecting files in this directory?
I haven't seen anything like this yet.
As far as I understood git yet, git does not handle directories - it simply handles files (for example you cannot add an empty directory to git). git is not aware of the concept of directories. As Sourcetree is mainly a git GUI-Frontend, SourceTree is also (mainly) directory agnostic.
Still not possible in Sourcetree AFAIK. You can however use
gitk -- path/to/folder
from the command line to display a GUI showing the git commits that affected a particular folder.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I do not know of a way to do this in SourceTree but using the terminal
the commands you are looking for are:
git log -- path/to/folder
git log -- path/to/folder/*
This should give you the history 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.
Select the directory from whichever view you want. Right-click and choose "log selected". You can even do this while looking at deleted directories in the history.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Thomas Chen could you please clarify how exactly you select the directory?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
From which view can you "select the directory"? I can select files and choose "log selected," but I don't know of anywhere within Sourcetree that I can right-click on a directory.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
right clicking and selecting log selected on a folder works sometimes, but often times the log selected option is disabled. Any way to make it work all the time? Why is it disabled sometimes? Thx
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can't do that in SourceTree. There may be a complex git command that gets you that information, but I don't know what it is.
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.