ステージングエリアから一部をアンステージ(git add -pの反対)

git reset -p

でできる。


http://www.kernel.org/pub/software/scm/git/docs/v1.7.0.7/git-reset.html

-p 
--patch 

Interactively select hunks in the difference between the index and <commit> (defaults to HEAD). The chosen hunks are applied in reverse to the index. 

This means that git reset -p is the opposite of git add -p (see git-add(1)).


ずっとgit checkout -- hogehogeしてました;

環境
$ git version
git version 1.7.0.2.msysgit.0
  • -

追記:
http://d.hatena.ne.jp/tyru/20100312/tips_of_newer_git

git checkout -pとかstashにも使えるみたい。