Hello All,

I would like to know the impact of doing "git add"

I assume that git add basically adds a new glob object entry for the file.
Once a commit is done then the glob entry gets linked to commit object 
(through the tree object).

However, what happens in the following case?

A file is added using git add but no commit is done.
After additional modification, the file is added again.
A commit is done at this point.

I assume that commit object will now point to the latest file glob object.
The first glob entry is sort of an orphan. Is this correct?
if this is the case, are these files ever removed by git automatically?

Thanks a lot ...



-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to