git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Santi Béjar" <santi@agolina.net>
To: Jan Hudec <bulb@ucw.cz>
Cc: gzoller <gzoller@hotmail.com>, git@vger.kernel.org
Subject: Re: Newbie: Restore messed up code from local or remote repository
Date: Fri, 12 Nov 2010 15:02:45 +0100	[thread overview]
Message-ID: <AANLkTinyhGKbLDJSsu19+capPUgCx0m_5feaOoSuXCm8@mail.gmail.com> (raw)
In-Reply-To: <20101112124621.GF30870@efreet.light.src>

On Fri, Nov 12, 2010 at 1:46 PM, Jan Hudec <bulb@ucw.cz> wrote:
> On Fri, Nov 12, 2010 at 00:22:43 -0800, gzoller wrote:
>>
>> 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.
>
> If you screwed up content of the index, you will need the 'reset' command.
>

If the problem is that you messed with the index (stage) or the
working directory and you want to discard local changes to them, you
could also execute "git status" and follow the instruccions there. If
that is not enough, report it here.

HTH,
Santi

  reply	other threads:[~2010-11-12 14:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-12  8:22 Newbie: Restore messed up code from local or remote repository gzoller
2010-11-12 10:38 ` Ramkumar Ramachandra
2010-11-12 12:46 ` Jan Hudec
2010-11-12 14:02   ` Santi Béjar [this message]
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=AANLkTinyhGKbLDJSsu19+capPUgCx0m_5feaOoSuXCm8@mail.gmail.com \
    --to=santi@agolina.net \
    --cc=bulb@ucw.cz \
    --cc=git@vger.kernel.org \
    --cc=gzoller@hotmail.com \
    /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).