On Tue, Apr 17, 2012 at 11:46:37AM -0700, tombert wrote:
> My first tip would be:
> git checkout --force <ref>
> ... but others might know better ...
This will change your head (active branch) to point to the <ref>,
which is not something you want, especially if <ref> is a remote branch;
you want to stay on your local branch but change the *contents* of the
local branch. The git reset --hard suggestion is a good one, since it
does exactly that. :-)
Petr "Pasky" Baudis
Smart data structures and dumb code works a lot better
than the other way around. -- Eric S. Raymond
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 firstname.lastname@example.org.
To unsubscribe from this group, send email to
For more options, visit this group at