Google fails at this search. What is the flag to git ls-files
but ignore the .gitignore file rules?
CodePudding user response:
Git ignore working :
- Create a folder as .gitignore inside your git folder,
- Then commit it to the git,
- Add or drag & drop any file inside .gitignore folder to ignore it from being tracked.
To list all untracked files :
- Create any file/folder.
- Use : git ls-files --others Command to List out the untracked files in git,
- 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.