How to show git log history for a sub directory of a git repo? -
lets have git repo looks this.
foo/ .git/ a/ ... big tree here b/ ... big tree here is there way ask git log show log messages specific directory. example want see commits touched files in foo/a only?
from directory foo/, use
git log -- b you need '--' separate <path>.. <since>..<until> refspecs.
$ git log --oneline -- src/nvfs d6f6b3b changes mac os x 803fcc3 initial commit $ git log --oneline 803fcc3 -- src/nvfs 803fcc3 initial commit $ git log --oneline d6f6b3b changes mac os x 96cbb79 gitignore 803fcc3 initial commit
Comments
Post a Comment