On Thu, 27 Jan 2011 01:48:02 -0800 (PST)
Thomas Ferris Nicolaisen <tfn...@gmail.com> wrote:
> Say I have this:
> # On branch master
> # Changes to be committed:
> # (use "git reset HEAD <file>..." to unstage)
> # modified: foo
> # Changed but not updated:
> # (use "git add <file>..." to update what will be committed)
> # (use "git checkout -- <file>..." to discard changes in working
> # modified: bar
> Now I want to drop all changes not yet in the index, i.e. "bar".
> The only way I can find at the moment is to stash with --keep-index,
> and then clear the stash.
> Any more elegant way of doing this?
$ git checkout -- .
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To post to this group, send email to email@example.com.
To unsubscribe from this group, send email to
For more options, visit this group at