Reputation: 14685
This answer shows you how to mark a file that is managed by git as "I don't want changes from the repo for this file" - IE to have your own local untracked version of that file, even though it remains under revision control by git in the remotes.
The question is "How can I tell which files have been marked this way?" ... a good thing to be able to check, if you are using this feature!
Note: mentioned in comments below, skip-worktree
is probably a better tool for the job than assume-unchanged
. Nonetheless, this question documents how to find assume-unchanged
files.
Upvotes: 3
Views: 368
Reputation: 12913
Slight improvement to @GreenAsJade answer:
git ls-files -v | grep "^[a-z]"
That works for zsh users.
Upvotes: 3
Reputation: 14685
... the answer was provided in comments of the answer linked above: git ls-files -v
will show "assume unchanged" files as lower case letter.
So you can find them like this:
git ls-files -v | grep ^[a-z]
Upvotes: 2