From: Alex Riesen Date: Sat, 31 Jan 2009 14:45:29 GMT Subject: Re: understanding index Message-ID: <81b0412b0901310645t4307f67vf546e9c1c8c07701@mail.gmail.com> In-Reply-To: 2009/1/31 Santi Béjar : > 2009/1/31 Nicolas Sebrecht : >> I'm having some understanding trouble with git index. As I understand, >> 'git rm --cached' is not strictly the opposite of 'git add'. It's a >> little embarrassing in this particular case : what if you want to >> commit and did a wrong 'git add -u' command ? >> > So to not commit foo at all: > > git reset HEAD foo > Or look at git gui, which allows you to select the not-to-commit parts visually