Alex Chaffee's blog



Alex ChaffeeAlex Chaffee
git unadd
edit Posted by Alex Chaffee on Wednesday September 02, 2009 at 03:16PM

Sometimes I accidentally git add files. Or more often, I do git add . and get a huge changelist and then realize I want to move certain files to a different changelist or a different branch. I could do a git reset which, absent --soft or --hard, pulls all the changes out of the index (aka dircache aka staging area) but leaves them in the filesystem (aka working tree). But wouldn't it be nice to leave all the files in the index except the few I want to keep out?