From: "Kenneth P. Turvey" <kt-usenet@squeakydolphin.com>
To: git@vger.kernel.org
Subject: Simple problem
Date: Mon, 28 Apr 2008 16:31:05 +0000 (UTC) [thread overview]
Message-ID: <fv4u49$oks$1@ger.gmane.org> (raw)
I ran into an issue earlier today that I didn't know how to easily solve
in git. I'm sure it is easy to handle, but I wasn't sure how.
I removed a file and then realized I'd hit the wrong one. So all I
wanted to do was to get the file back the way it was in the last commit.
Basically I wanted something similar to:
svn update myfile
in subversion.
I got it back by using a diff and just deleting all the minus signs at
the beginning of the lines, but I'm sure this isn't the way to handle
this. Strangely this simple case wasn't covered by any of the tutorials
I looked at.
Thanks.
--
Kenneth P. Turvey <kt-usenet@squeakydolphin.com>
next reply other threads:[~2008-04-28 16:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-28 16:31 Kenneth P. Turvey [this message]
2008-04-28 16:35 ` Simple problem Bill Lear
2008-04-28 16:49 ` Björn Steinbrink
2008-04-28 18:58 ` Kenneth P. Turvey
2008-04-28 17:47 ` Alex Riesen
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='fv4u49$oks$1@ger.gmane.org' \
--to=kt-usenet@squeakydolphin.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).