git ls-files: howto identify new files (added, not committed)?

前端 未结 3 1113
伪装坚强ぢ
伪装坚强ぢ 2021-01-30 00:39

After I called git add the command git status will show me something like:

...
new file:    

3条回答
  •  梦如初夏
    2021-01-30 01:16

    I would like to see all the added and modified files, so the merge of
    git diff --cached --name-only
    +
    git ls-files --modified --deleted
    but without [1]+ Stopped ... in between.

    When I use git diff --cached --name-only && git ls-files --modified --deleted I receive:

    content/blog/2020/05/artificial-intellect.json
    content/blog/2020/05/artificial-intellect.pug
    
    [1]+  Stopped                 git diff --cached --name-only
    content/index.json
    index.php
    

提交回复
热议问题