git: How to ignore all present untracked files?

前端 未结 8 1603
北恋
北恋 2020-12-22 14:57

Is there a handy way to ignore all untracked files and folders in a git repository?
(I know about the .gitignore.)

So git status would

8条回答
  •  既然无缘
    2020-12-22 15:36

    Found it in the manual

    The mode parameter is used to specify the handling of untracked files. It is optional: it defaults to all, and if specified, it must be stuck to the option (e.g. -uno, but not -u no).

    git status -uno

提交回复
热议问题