From: "Aaron Gray" <aaronngray.lists@googlemail.com>
To: "Nicolas Sebrecht" <nicolas.s.dev@gmx.fr>
Cc: "Peter Baumann" <waste.manager@gmx.de>,
"Git Mailing List" <git@vger.kernel.org>
Subject: Re: Resetting working files
Date: Sun, 31 May 2009 20:31:50 +0100 [thread overview]
Message-ID: <34D6982455BA4A7E9F5D2D467DC4A55C@HPLAPTOP> (raw)
In-Reply-To: 20090531173932.GA13856@vidovic
> 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
next prev parent reply other threads:[~2009-05-31 19:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-31 13:09 Resetting working files Aaron Gray
2009-05-31 15:00 ` Dirk Süsserott
2009-05-31 15:57 ` Aaron Gray
2009-05-31 16:25 ` Peter Baumann
[not found] ` <20090531163225.GE3674@debian.b2j>
2009-05-31 16:50 ` Aaron Gray
2009-05-31 17:39 ` Nicolas Sebrecht
2009-05-31 19:31 ` Aaron Gray [this message]
2009-05-31 21:30 ` Alex Riesen
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=34D6982455BA4A7E9F5D2D467DC4A55C@HPLAPTOP \
--to=aaronngray.lists@googlemail.com \
--cc=git@vger.kernel.org \
--cc=nicolas.s.dev@gmx.fr \
--cc=waste.manager@gmx.de \
/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).