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

前端 未结 4 1647
孤独总比滥情好
孤独总比滥情好 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:26

    Simplest solution:

    1. Go to the directory
    2. git status | grep -v '\.\.\/'

    Of course this discards colors.

提交回复
热议问题