Re: Mysterious junk in file.... "not commited yet"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Howard Miller <howard@xxxxxxxxxxxxxxxxxxx> writes:

> Hmmm... fixed. I've never even heard of 'git add' before.

Hmm, maybe it's time to read the manual, then ;-).

> Why is this different to plain old 'checkout' without the HEAD?

Read about the "index" of Git, aka "staging area". It's where Git (and
you) prepare commit, and "git diff" shows you the diff against it.
Plain "git checkout" will read from the index, while "git checkout
HEAD" takes the last commited version.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]