How to list all immutable (tracked) files?

I unpacked the old "git-image" into my git repository and most of the files were modified. I would like to know which files are left untouched. How to list these files?

+4
source share
2 answers

I did not find anything purely git, but with some bash you can:

( git ls-files --modified ; git ls-files ) | sort | uniq -u

explanation

  • git ls-files lists all files tracked by git
  • git ls-files --modifiedlists all modified files tracked by git
  • The rest are a few bash scripts to remove duplicates from both lists.
+4
source

, , git, unzip -u? echos () , sed -, ...

0

Source: https://habr.com/ru/post/1598165/


All Articles