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>
Written by Alexander Greim
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Staging
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#