From: Avery Pennarun <apenwarr@gmail.com>
To: Howard Miller <howard@e-learndesign.co.uk>
Cc: git@vger.kernel.org
Subject: Re: Mysterious junk in file.... "not commited yet"
Date: Mon, 5 Apr 2010 15:13:49 -0400 [thread overview]
Message-ID: <n2g32541b131004051213q17f9e948m5f02a3575fb0f1f1@mail.gmail.com> (raw)
In-Reply-To: <p2y26ae428a1004051203jbb7c838eh8de0cb5f6ae1dcb1@mail.gmail.com>
On Mon, Apr 5, 2010 at 3:03 PM, Howard Miller
<howard@e-learndesign.co.uk> wrote:
>> You might have 'git add'ed the changed line. Try this:
>>
>> git checkout HEAD -- <filename>
>
> Hmmm... fixed. I've never even heard of 'git add' before. Why is this
> different to plain old 'checkout' without the HEAD?
>
> Anyway... thanks. Day saved :)
That ends up being a very long story. You should probably read about
"staging" files in git in a git tutorial somewhere. :)
Glad I could help.
Have fun,
Avery
next prev parent reply other threads:[~2010-04-05 19:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-05 18:13 Mysterious junk in file.... "not commited yet" Howard Miller
2010-04-05 18:52 ` Avery Pennarun
2010-04-05 19:03 ` Howard Miller
2010-04-05 19:13 ` Avery Pennarun [this message]
2010-04-05 19:24 ` Matthieu Moy
2010-04-05 19:29 ` Howard Miller
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=n2g32541b131004051213q17f9e948m5f02a3575fb0f1f1@mail.gmail.com \
--to=apenwarr@gmail.com \
--cc=git@vger.kernel.org \
--cc=howard@e-learndesign.co.uk \
/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).