git add -u
git reset -- main/dontcheckmein.txt
Note: Git has subsequently added special syntax for this, which is explained in other answers.
git add -u
git reset -- main/dontcheckmein.txt
Note: Git has subsequently added special syntax for this, which is explained in other answers.