Git Pull Explained with Cats
git pull purr Git pull updates your current HEAD branch w/ the latest Δs from remote Remote master remote branch origin/tabby Local master local branch tabby Now I'm going to "git pull" to update a branch! When the current branch is master Local HEAD master git pull (origin master) master git checkout master This is same as: git fetch origin git merge origin/master When the current branch is tabby Local HEAD tabby master this branch is unchanged! git pull (origin tabby) tabby Same as: git fetch origin git merge origin/tabby git fetch tracking branch this branch is changed!
A hand-drawn instructional comic uses cats to explain how Git pull works when the current branch is master or tabby. The cat branches represent local and remote branches, while Git commands show fetching changes and merging the corresponding origin branch. The joke is the cute, overly simplified “Git for beginners” presentation, making a technical workflow look like a sequence of cats changing colour and collars.
cat / catorange tabby cat / orange tabby catgray cat / gray catgreen bow tie / green bow tielaptop / laptopcomputer screen / computer screenremote branch diagram / remote branch diagramlocal branch diagram / local branch diagrammaster label / master labeltabby label / tabby labelarrows / arrowsspeech bubble / speech bubblered heart / red heartblue cloud / blue cloudyellow highlighted text / yellow highlighted texthandwritten notes / handwritten notesopen notebook / open notebook
- @ithueti / 4676 2021-09-08
- Type
- image
- Size
- 800×600 · 131.0 KiB
- Mood
- educational, cute
- Language
- en
- Added