|
|
|
|
|
by nhaehnle
5453 days ago
|
|
In a sense, the index is an acknowledgment of the fact that the operation of "creating a commit" should be a two-phase process, similar to a database transaction. Phase 1: Choose which parts of the working directory changes should be in the upcoming commit. Phase 2: Actually commit those changes. The separation is not entirely clean in Git. While this is very appreciated for convenience (e.g. git commit -a), it blurs the line and does cause confusion. |
|