I have a bunch of files in a changeset, but I want to specifically ignore a single modified file. Looks like this after git status:
git status
# modified:
To keep the change in file but not to commit I did this
git add .
git reset -- main/dontcheckmein.txt
git commit -m "commit message"
to verify the file is excluded do