Last Updated: February 25, 2016
· iltempo

Un-staging already staged files in git

Let's assume you want to commit a bunch of files except of a single one. This happens to me from time to time when I tweak a config file for testing only. You may use interactive staging or

stage all:

git add -a

then un-stage individually:

git reset <file>