Here’s a Git cheat sheet on how to move content between the working directory, the staged area (the
.git/index file) and the committed Git repository. It shows what happens to the file
F (or more correctly, to its content) in response to various git commands and how to undo/revert an edit, or a
F’ represents the first modification to F, and F” the second modification to F.