Archive

Archive for November, 2009

Git file transition diagram

November 5th, 2009 No comments

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: