简体   繁体   English

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

[英]How to ignore .gitignore and list ALL UNTRACKED FILES

Google fails at this search.谷歌在这个搜索中失败了。 What is the flag to git ls-files but ignore the .gitignore file rules? git ls-files的标志是什么,但忽略 .gitignore 文件规则?

Git ignore working : Git忽略工作:

  1. Create a folder as .gitignore inside your git folder,在您的 git 文件夹中创建一个 .gitignore 文件夹,
  2. Then commit it to the git,然后提交给git,
  3. Add or drag & drop any file inside .gitignore folder to ignore it from being tracked.在 .gitignore 文件夹中添加或拖放任何文件以忽略它被跟踪。

To list all untracked files :列出所有未跟踪的文件:

  1. Create any file/folder.创建任何文件/文件夹。
  2. Use : git ls-files --others Command to List out the untracked files in git,使用: git ls-files --others命令列出git中未跟踪的文件,
  3. Or You can use git status Command to see the status, If you have any new/Untracked Files it will list down as Untracked files.或者您可以使用git status命令查看状态,如果您有任何新的/未跟踪的文件,它将列为未跟踪的文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM