Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save yijxiang/94a725cd4af26db715570c37ef7579df to your computer and use it in GitHub Desktop.
Save yijxiang/94a725cd4af26db715570c37ef7579df 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