Does Git have some kind of "ignore once" function?
I want git to ignore a change to a file only this time, is it possible?
I have a tracked file with variables , I want to change:
Debug: 'true'
too be 'false',
- I don't want the file to show up when staging files, so I can do a "stage all".
- I also don't want to add the file to .gitignore, because the file contains other variables that changes & should be tracked.
- I don't want to push the Debug: 'false', because that would just make other people have the opposite problem with wanting to have the Debug: 'true' without tracking.
Is this possible?
I'm aware of:
git update-index --assume-unchanged <file>
But if I understand it correctly it will continue to not track the changes untill I use the --no-assume-unchanged flag to start tracking.
Can I first use --assume-unchanged then do the change & then use --no-assume-unchanged to bypass the tracking?