Re: Mysterious junk in file.... "not commited yet"
- From
Avery Pennarun <apenwarr@gmail.com>
- Date
- Apr 5, 2010, 19:13 UTC
- Message-ID
- <n2g32541b131004051213q17f9e948m5f02a3575fb0f1f1@mail.gmail.com>
- In-Reply-To
- <p2y26ae428a1004051203jbb7c838eh8de0cb5f6ae1dcb1@mail.gmail.com>
On Mon, Apr 5, 2010 at 3:03 PM, Howard Miller <howard@e-learndesign.co.uk> wrote:
Show 8 quoted lines
>> 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