git: How to ignore all present untracked files?

前端 未结 8 1605
北恋
北恋 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:18

    -u no doesn't show unstaged files either. -uno works as desired and shows unstaged, but hides untracked.

提交回复
热议问题