如何忽略 .gitignore 并列出所有未跟踪的文件

How to ignore .gitignore and list ALL UNTRACKED FILES

Google 在此搜索中失败。 git ls-files 但忽略 .gitignore 文件规则的标志是什么?

Git 忽略工作:

  1. 在您的 git 文件夹中创建一个名为 .gitignore 的文件夹,
  2. 然后提交给 git,
  3. 在 .git 中添加或拖放任何文件。git忽略文件夹以忽略它而不被跟踪。

列出所有未跟踪的文件:

  1. 创建任何 file/folder.
  2. 使用: git ls-files --others 命令列出git,
  3. 中未跟踪的文件
  4. 或者您可以使用 git status 命令查看状态,如果您有任何 new/Untracked 文件,它将列为未跟踪文件。