Is there a way to find the files I've set to 'Assume Unchanged'?
I've modified several files and wanted to pull, so I've set them to 'Assume Unchanged'. Now I'm finished and want to commit, but they don't appear in the Git Staging window.
I use Eclipse 4.4.2.
Well, it's correct that they wouldn't appear in the staging view. From the git docs:
When the "assume unchanged" bit is on, the user promises not to change the file and allows Git to assume that the working tree file matches what is recorded in the index.
If you want to "re-track" changes, do git update-index --no-assume-unchanged <file>
.
In Eclipse, this works as follows: Right-click on file > Team > Advanced > No Assume Unchanged. After having done this, the file will show up in the Unstaged Changed section of the Git Staging View.
Files with assume-unchanged flag set are decorated with a little blue checkmark, see Preferences > Team > Label decorations
If 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