Command | New files | Changed files | Deleted files |
snap no: 1 | |||
First, Alice creates two files: foo-bar-baz.txt and …
snap no: 2 | |||
… one-two-three.txt.
snap no: 3 | |||
She adds foo-bar-baz.txt to the index:
The name of the file is added to .git/index and an according blob-object is created under ./git/objects snap no: 4 | |||
She also addes one-two-three.txt to the index
snap no: 5 | .git/objects/54/d55bf0bb50b503792f391b6f0158bd6145073e [blob] | .git/index | |
Trying to remove a file from the index does not change the repository …
… because the file foo-bar-baz.txt is still existant. snap no: 6 | |||
So, the file is removed …
snap no: 7 | |||
… and then the index is updated
Note: the object file is still in the ./git/objects directory. snap no: 8 | .git/index |