git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* how to revert changes in working tree?
@ 2006-12-06  6:49 Liu Yubao
  2006-12-06  8:43 ` Alex Riesen
  0 siblings, 1 reply; 11+ messages in thread
From: Liu Yubao @ 2006-12-06  6:49 UTC (permalink / raw)
  To: git

I'm confused how to revert changes in working tree:

$ git fetch
$ git merge "sync with origin" HEAD origin
....conflict....

$ git branch
* master
  origin

$ git status
# .....: needs update
# .....: needs update
(In fact I never modified anything in this tree, and "git diff"
showed many difference indeed, very strange).

I tried "git update-index --refresh", "git reset --hard",
"git reset --hard master", "git checkout master", 
"git checkout -f master", but "git status" still said same
as above.

At last, I deleted all files that were reported to be updated
with "rm -rf", ran "git checkout master" and "git status", then
git reported:
#       deleted:    ....
#       deleted:    ....


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

end of thread, other threads:[~2006-12-07  7:16 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-06  6:49 how to revert changes in working tree? Liu Yubao
2006-12-06  8:43 ` Alex Riesen
2006-12-06  9:57   ` Liu Yubao
2006-12-06 10:20     ` Alex Riesen
2006-12-06 11:14       ` Liu Yubao
2006-12-06 12:30         ` Alex Riesen
2006-12-06 12:52         ` Jakub Narebski
2006-12-06 18:13         ` Shawn Pearce
2006-12-07  1:42           ` Liu Yubao
2006-12-07  7:15             ` Juergen Ruehle
2006-12-06 10:20     ` Jakub Narebski

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).