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:
Try this:
git checkout -- main/dontcheckmein.txt