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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -