From: Liu Yubao <yubao.liu@gmail.com>
To: git@vger.kernel.org
Subject: how to revert changes in working tree?
Date: Wed, 06 Dec 2006 14:49:47 +0800 [thread overview]
Message-ID: <4576680B.7030500@gmail.com> (raw)
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: ....
next reply other threads:[~2006-12-06 6:51 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-06 6:49 Liu Yubao [this message]
2006-12-06 8:43 ` how to revert changes in working tree? 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4576680B.7030500@gmail.com \
--to=yubao.liu@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).