how to `git ls-files` for just one directory level.

后端 未结 7 885
广开言路
广开言路 2020-12-31 00:55

I\'m using msysgit (1.7.9), and I\'m looking for the right invocation of the git ls-files command to show just the (tracked) files and directories at the curren

7条回答
  •  既然无缘
    2020-12-31 02:00

    The simplest solution I have found, believe it or not, is to simply cd into the directory you want in your terminal. Running git ls-files in /project/src will give you results from only that directory, versus running it in /project

    Not the most technical answer, but hey, it works!

提交回复
热议问题