Skip to content

Instantly share code, notes, and snippets.

@berkedel
Last active October 18, 2022 11:19
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save berkedel/780291353e653cd16b1f to your computer and use it in GitHub Desktop.
Save berkedel/780291353e653cd16b1f to your computer and use it in GitHub Desktop.
Visualize Git Cheatsheet

Visualize Git Cheatsheet

Git Cheatsheet, (c) 2009-2012, Andrew Peterson

Stash

A place to hide modifications made to the workspace, while working on something else. (The stash area is not required in a “normal” workflow.)

Stash

Workspace

The local working area.

Workspace

Staging Area

The "index"– or "staging area" – holds a snapshot of the content of the working area, and it is this snapshot that is taken as the contents of the next commit.

Staging Area

Local Repository

A local area under version control.

Typical branches:

  • master
  • dev (for local development)
  • feature_x
  • bugfix_y

Local Repository

Upstream Repository

Typically a remote area under version control. Default name is 'origin'.

Typical branches here:

  • master
  • shared_feature_x
  • release_y

Upstream Repository

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment