Home > Uncategorized > Git file transition diagram

Git file transition diagram

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 git add.

F’ represents the first modification to F, and F” the second modification to F.

File transitions in Git

File transitions in Git

Categories: Uncategorized Tags:
  1. No comments yet.
  1. No trackbacks yet.