git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git reset --hard include/linux/config.h
@ 2006-07-05 16:58 Sam Ravnborg
  2006-07-05 17:05 ` Alex Riesen
  2006-07-06  2:45 ` Junio C Hamano
  0 siblings, 2 replies; 5+ messages in thread
From: Sam Ravnborg @ 2006-07-05 16:58 UTC (permalink / raw)
  To: git

While working on something unrelated I just did a quick hack
in include/linux/config.h
When done I wanted to get rid of the changes so I did:
git reset --hard include/linux/config.h

And the changes made to include/linux/config.h was indeed gone, with
all the other changes I had in other files.

Now git reset is maybe supposed to work on commit level only, but it
would have been nice if it erroroed out when it saw an argument that
it did not know about. In this case I assume git reset used
"include/linux/config.h" as <commitish>.

Also what is the right command to bring back a file to the original
state after doing some modifications that was not needed anyway?

	Sam

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-07-06  2:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-05 16:58 git reset --hard include/linux/config.h Sam Ravnborg
2006-07-05 17:05 ` Alex Riesen
2006-07-05 17:14   ` Sam Ravnborg
2006-07-05 17:29     ` Alex Riesen
2006-07-06  2:45 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).