git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Index area concept and blowing it up
@ 2012-03-29  2:11 anjibman
  2012-03-29 10:42 ` Andreas Ericsson
  0 siblings, 1 reply; 2+ messages in thread
From: anjibman @ 2012-03-29  2:11 UTC (permalink / raw)
  To: git

Hi All,

My first question is where is this index actually in Git. Is that a some
folder or some location?

Second, how really Git keep information about index?

Third, in git community book it says " If you blow the index away entirely,
you generally haven't lost any information as long as you have the name of
the tree that it described". I didn't get this statement can any one explain
this in simple words.

And finally why git add is used for both adding untrack file as well as to
move file to stage area? Is there any particular reason for this?

Thanks,
Anjib 



--
View this message in context: http://git.661346.n2.nabble.com/Index-area-concept-and-blowing-it-up-tp7416124p7416124.html
Sent from the git mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Index area concept and blowing it up
  2012-03-29  2:11 Index area concept and blowing it up anjibman
@ 2012-03-29 10:42 ` Andreas Ericsson
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Ericsson @ 2012-03-29 10:42 UTC (permalink / raw)
  To: anjibman; +Cc: git

On 03/29/2012 04:11 AM, anjibman wrote:
> Hi All,
> 
> My first question is where is this index actually in Git. Is that a some
> folder or some location?
> 
> Second, how really Git keep information about index?
> 
> Third, in git community book it says " If you blow the index away entirely,
> you generally haven't lost any information as long as you have the name of
> the tree that it described". I didn't get this statement can any one explain
> this in simple words.
> 
> And finally why git add is used for both adding untrack file as well as to
> move file to stage area? Is there any particular reason for this?
> 

index = staging area.
committing = creating a commit object out of the staging area.

When a book talks about "move file to staging area", it really means
"add to the set of files we're about to create a commit object from".

That might help clear things up. 

However; Your questions all seem rather technical, but you don't strike
me as a programmer yourself. If you give us the reason behind your
questions, it'll almost certainly be easier for us to answer them in a
way that's useful to you while wasting the minimum amount of our time.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-03-29 10:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-29  2:11 Index area concept and blowing it up anjibman
2012-03-29 10:42 ` Andreas Ericsson

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).