From: lamikr <lamikr@cc.jyu.fi>
To: git@vger.kernel.org
Subject: undoing changes with git-checkout -f
Date: Mon, 09 Jan 2006 23:16:52 +0200 [thread overview]
Message-ID: <43C2D2C4.2010904@cc.jyu.fi> (raw)
Hi
Can somebody tell have I understood git-checkout -f wrong as following
does not work as I thought
1) I clone git repo by using command
git-clone rsync://source.mvista.com/git/linux-omap-2.6.git
linux-omap-2.6
2) I go to cloned repo and create there a new file
cd linux-omap-2.6
echo "test" > 1.txt
3) I want to undo the creation of 1.txt by using command
git-checkout -f
but for some reason the 1.txt is still displayed in the root of
linux-omap-2.6 directory. (I have also tried "git-reset --hard" but
seems to have same effect)
What am I doing wrong?
Mika
next reply other threads:[~2006-02-01 8:18 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-09 21:16 lamikr [this message]
2006-01-09 21:46 ` undoing changes with git-checkout -f Junio C Hamano
2006-01-09 22:52 ` lamikr
2006-01-10 4:55 ` Joel Becker
2006-01-10 5:57 ` Junio C Hamano
2006-01-10 6:32 ` Joel Becker
2006-01-10 7:18 ` Joel Becker
2006-01-10 7:42 ` Junio C Hamano
2006-01-10 8:16 ` Joel Becker
2006-01-10 14:51 ` Johannes Schindelin
2006-01-10 16:17 ` Alex Riesen
2006-01-10 16:45 ` Johannes Schindelin
2006-01-10 17:32 ` Alex Riesen
[not found] ` <Pine.LNX.4.64.0601091321390.5588@g5.osdl.org>
2006-01-09 22:36 ` lamikr
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=43C2D2C4.2010904@cc.jyu.fi \
--to=lamikr@cc.jyu.fi \
--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).