Re: understanding index
2009/1/31 Santi Béjar <santi@agolina.net>:
Show 10 quoted lines
> 2009/1/31 Nicolas Sebrecht <nicolas.s-dev@laposte.net>:
>> 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