带有路径的GitLog命令

带有路径的GitLog命令,git,git-log,Git,Git Log,我试图从不同地方的项目中制作GitLog。 有没有办法在GitLog命令中添加路径 我试过这个,但不起作用: git log --pretty=format:"%H \"%an\" %ad \"%s\"" --numstat --date=short -- Code/code1/git 只需在log命令之前添加--git dir git--git dir=code/code1/.git log--pretty=format:“%H\%an\%ad\%s\”--numstat--date=sh

我试图从不同地方的项目中制作GitLog。 有没有办法在GitLog命令中添加路径

我试过这个,但不起作用:

git log --pretty=format:"%H \"%an\" %ad \"%s\"" --numstat --date=short -- Code/code1/git 
只需在log命令之前添加--git dir

git--git dir=code/code1/.git log--pretty=format:“%H\%an\%ad\%s\”--numstat--date=short