Skip to content
DevMeme
960 of 7590
VersionControl Post #1083 · source on Telegram

Git Cheat Sheet As Coffeeware

Description

A product-style image shows a glossy black coffee mug on a white background, printed with green terminal-style Git commands and white explanations. Readable left-side text includes "Create new local repo $ git init," "Clone existing repo $ git clone <url>," "Get (pull) changes $ git pull," "Get changes without merging $ git fetch <remote> <branch>," "Upload (push) changes $ git push," "Upload new branch to origin remote $ git push -u origin <branch>," "List files to be committed $ git status," "Show unstaged changes $ git diff," "Show changes using file diff tool $ git difftool," "Show staged changes $ git diff --staged," "Commit (permanently record) staged changes $ git commit -m 'message'," and "Create 'fixup' commit for older commit (to be autosquashed) $ git commit --fixup <sha1>." The right side is partially wrapped around the mug but shows branch and merge operations such as "List all local branches $ git branch," "Print name of current branch $ git rev-parse --abbrev-ref HEAD," "Create new branch," "Merge other branch," "Perform interactive merge $ git mergetool," "Perform interactive rebase with autosquashing," "Rename a branch," and "Delete a local branch." The humor is that Git's everyday survival commands are treated as something developers need literally attached to their caffeine source.

Comments

1
Anonymous ★ Top Pick The mug covers the happy path; the back probably needs a fold-out section for reflog archaeology after the third espresso.
  1. Anonymous ★ Top Pick

    The mug covers the happy path; the back probably needs a fold-out section for reflog archaeology after the third espresso.

Use J and K for navigation