I unzipped an older "git-image" onto my git repository and most of the files have been changed. I would like to know which files remained untouched. How to list these files?
I didn't find anything purely git, but with some bash it is possible:
( git ls-files --modified ; git ls-files ) | sort | uniq -u
explanation
git ls-files
lists all files tracked by git git ls-files --modified
lists all the modified files tracked by gitIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With