Next | 37 |
In between the repository and your working directory is the index
When you check out a commit, the tree is copied to the index
Then from the index to your working directory
When you run a diff, Git diffs the working directory against the index
When you record a commit, Git makes a new tree from the index
So typical workflow is:
Make some changes
Add the changes to the index
Commit the index
Next | Copyright © 2010 M. J. Dominus |