git update-index --assume-unchanged path/to/file
git update-index --no-assume-unchanged path/to/file
git ls-files -v | grep '^[[:lower:]]'
git diff-tree --no-commit-id --name-only -r 'hash of the commit'
--no-commit-id suppresses the commit ID output.
--pretty argument specifies an empty format string to avoid the cruft at the beginning.
--name-only argument shows only the file names that were affected (Thanks Hank).
Use --name-status instead, if you want to see what happened to each file (Deleted, Modified, Added)
-r argument is to recurse into sub-trees
git add the_left_out_file
git commit --amend --no-edit
git fetch origin main
git merge origin/main