From: gzoller <gzoller@hotmail.com>
To: git@vger.kernel.org
Subject: Newbie: Restore messed up code from local or remote repository
Date: Fri, 12 Nov 2010 00:22:43 -0800 (PST) [thread overview]
Message-ID: <1289550163511-5731540.post@n2.nabble.com> (raw)
Hello -- Extreme Git Newbie
I have a project that is checked into a local git repository as well as
pushed to a remote repository.
Through misadventure I've managed to screw up my working code and want to
restore what I had from my last commit on either the local or remote
repositories.
So I blew away my messed up working files and tried:
git checkout
git pull -f /path/to/remote/repos
git fetch -f /path/to/remote/repos
None of the above did the trick. The two remote commands reported that
everything was Already up-to-date! (even though I'd deleted a lot of local
working files)
What am I missing? How can I restore my previous state from last commit?
Thanks!
Greg
--
View this message in context: http://git.661346.n2.nabble.com/Newbie-Restore-messed-up-code-from-local-or-remote-repository-tp5731540p5731540.html
Sent from the git mailing list archive at Nabble.com.
next reply other threads:[~2010-11-12 8:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-12 8:22 gzoller [this message]
2010-11-12 10:38 ` Newbie: Restore messed up code from local or remote repository Ramkumar Ramachandra
2010-11-12 12:46 ` Jan Hudec
2010-11-12 14:02 ` Santi Béjar
2010-11-12 16:50 ` gzoller
2010-11-12 16:57 ` Matthieu Moy
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=1289550163511-5731540.post@n2.nabble.com \
--to=gzoller@hotmail.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).