Git status - is there a way to show changes only in a specific directory?

前端 未结 4 1644
孤独总比滥情好
孤独总比滥情好 2020-12-04 18:52

I would like to see a list of files modified since the last commit, as git status shows, but I care only about files located in a single directory. Is there a w

4条回答
  •  臣服心动
    2020-12-04 19:13

    From within the directory:

    git status .
    

    You can use any path really, use this syntax:

    git status 
    

    For instance for directory with path "my/cool/path/here"

    git status my/cool/path/here
    

提交回复
热议问题