Git ls-files: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 6: | Line 6: | ||
Show information about files in the [[Git_Concepts#Index|index]] and the [[Git_Concepts#Working_Tree|working tree]]. | Show information about files in the [[Git_Concepts#Index|index]] and the [[Git_Concepts#Working_Tree|working tree]]. | ||
=Options= | |||
==--exclude-standard== | |||
Do not show standard Git exclusions (.git/info/exclude, .gitignore in each directory, and the user's global exclusion file) in the output. | |||
=Show Files that Have Been Modified in the Working Tree= | =Show Files that Have Been Modified in the Working Tree= |
Revision as of 18:29, 30 July 2019
Internal
Overview
Show information about files in the index and the working tree.
Options
--exclude-standard
Do not show standard Git exclusions (.git/info/exclude, .gitignore in each directory, and the user's global exclusion file) in the output.
Show Files that Have Been Modified in the Working Tree
git ls-files --modified ':(attr:merge=ours)'
Clarify what ':(attr:merge=ours)' means.
Show Files that Have Been Delete in the Working Tree
git ls-files --deleted
Show Untracked Files
git ls-files --others --exclude-standard
(--exclude-standard is needed to drop ignored files from output)