Re: Resetting working files

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

 



The 31/05/09, Aaron Gray wrote:

> I still do not understand what index is.
> 1. is index an replica of the committed tree
> 2. is index only transient in that its content will be reset once
> committed?
> 3. or other ?

I think index is HEAD or a revision hash. Am I correct ?

HEAD is a reference to a branch name:
$ cat .git/HEAD
ref: refs/heads/master
$

The branch name is a reference to a commit:
$ cat .git/refs/heads/master
a80aad7b85fc560451e07792d64ab6cb15a39914
$

The index is what will be committed by 'git commit'.

Obviously alot more to learn about GIT, hopefully the O'Reilly book will clue me up as I am still getting problems with using GIT properly.

Thanks Nicolas,

Aaron

--
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]