{"thread":{"id":"30091","subject":"Index area concept and blowing it up","startedAt":"2012-03-29T02:11:04Z","lastAt":"2012-03-29T10:42:56Z","messageCount":2,"participants":["anjibman","Andreas Ericsson"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"188029","messageId":"1332987064083-7416124.post@n2.nabble.com","threadId":"30091","inReplyTo":null,"subject":"Index area concept and blowing it up","fromName":"anjibman","fromEmail":"anjibcs@hotmail.com","sentAt":"2012-03-29T02:11:04Z","receivedAt":"2012-03-29T02:11:04Z","isPatch":false,"sender":{"key":"anjibcs@hotmail.com","avatar":"https://gravatar.com/avatar/7ac86efaee717c505c8eaabde7f28e645eae076024b9761dc426b6b77ff4f2a0?d=mp&s=160"},"body":"Hi All,\n\nMy first question is where is this index actually in Git. Is that a some\nfolder or some location?\n\nSecond, how really Git keep information about index?\n\nThird, in git community book it says \" If you blow the index away entirely,\nyou generally haven't lost any information as long as you have the name of\nthe tree that it described\". I didn't get this statement can any one explain\nthis in simple words.\n\nAnd finally why git add is used for both adding untrack file as well as to\nmove file to stage area? Is there any particular reason for this?\n\nThanks,\nAnjib \n\n\n\n--\nView this message in context: http://git.661346.n2.nabble.com/Index-area-concept-and-blowing-it-up-tp7416124p7416124.html\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"188051","messageId":"4F743CB0.8050603@op5.se","threadId":"30091","inReplyTo":"1332987064083-7416124.post@n2.nabble.com","subject":"Re: Index area concept and blowing it up","fromName":"Andreas Ericsson","fromEmail":"ae@op5.se","sentAt":"2012-03-29T10:42:56Z","receivedAt":"2012-03-29T10:42:56Z","isPatch":false,"sender":{"key":"ae@op5.se","avatar":"https://gravatar.com/avatar/426e89595c75a8f5252dd0c989e5fabe5bcac616e68557427ad9aef6b0ca342a?d=mp&s=160"},"body":"On 03/29/2012 04:11 AM, anjibman wrote:\n> Hi All,\n> \n> My first question is where is this index actually in Git. Is that a some\n> folder or some location?\n> \n> Second, how really Git keep information about index?\n> \n> Third, in git community book it says \" If you blow the index away entirely,\n> you generally haven't lost any information as long as you have the name of\n> the tree that it described\". I didn't get this statement can any one explain\n> this in simple words.\n> \n> And finally why git add is used for both adding untrack file as well as to\n> move file to stage area? Is there any particular reason for this?\n> \n\nindex = staging area.\ncommitting = creating a commit object out of the staging area.\n\nWhen a book talks about \"move file to staging area\", it really means\n\"add to the set of files we're about to create a commit object from\".\n\nThat might help clear things up. \n\nHowever; Your questions all seem rather technical, but you don't strike\nme as a programmer yourself. If you give us the reason behind your\nquestions, it'll almost certainly be easier for us to answer them in a\nway that's useful to you while wasting the minimum amount of our time.\n\n-- \nAndreas Ericsson                   andreas.ericsson@op5.se\nOP5 AB                             www.op5.se\nTel: +46 8-230225                  Fax: +46 8-230231\n\nConsidering the successes of the wars on alcohol, poverty, drugs and\nterror, I think we should give some serious thought to declaring war\non peace.\n"}]}