GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - MarkLodato/visual-git-guide: A visual guide to git.

BranchesTags
Open more actions menu

Latest commit

 

History

253 Commits
253 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
.gitignore
.gitignore
 
 
Makefile
Makefile
 
 
README-ja.md
README-ja.md
 
 
README.md
README.md
 
 
basic-usage-2.tex
basic-usage-2.tex
 
 
basic-usage.tex
basic-usage.tex
 
 
checkout-after-detached.tex
checkout-after-detached.tex
 
 
checkout-b-detached.tex
checkout-b-detached.tex
 
 
checkout-branch.tex
checkout-branch.tex
 
 
checkout-detached.tex
checkout-detached.tex
 
 
checkout-files.tex
checkout-files.tex
 
 
cherry-pick.tex
cherry-pick.tex
 
 
commit-amend.tex
commit-amend.tex
 
 
commit-detached.tex
commit-detached.tex
 
 
commit-main.tex
commit-main.tex
 
 
commit-stable.tex
commit-stable.tex
 
 
common.tex
common.tex
 
 
conventions.tex
conventions.tex
 
 
diff.tex
diff.tex
 
 
goatcounter.js
goatcounter.js
 
 
index-de.html
index-de.html
 
 
index-en.html
index-en.html
 
 
index-es.html
index-es.html
 
 
index-fr.html
index-fr.html
 
 
index-it.html
index-it.html
 
 
index-ja.html
index-ja.html
 
 
index-ko.html
index-ko.html
 
 
index-pl.html
index-pl.html
 
 
index-pt.html
index-pt.html
 
 
index-ru.html
index-ru.html
 
 
index-sk.html
index-sk.html
 
 
index-vi.html
index-vi.html
 
 
index-zh-cn.html
index-zh-cn.html
 
 
index-zh-tw.html
index-zh-tw.html
 
 
index.html
index.html
 
 
merge-ff.tex
merge-ff.tex
 
 
merge.tex
merge.tex
 
 
rebase-onto.tex
rebase-onto.tex
 
 
rebase.tex
rebase.tex
 
 
reset-commit.tex
reset-commit.tex
 
 
reset-files.tex
reset-files.tex
 
 
reset.tex
reset.tex
 
 
translate-en.html
translate-en.html
 
 
visual-git-guide.css
visual-git-guide.css
 
 
visual-git-guide.js
visual-git-guide.js
 
 

Repository files navigation

A Visual Git Reference

The goal of this website is to be a concise, visual reference for how git commands work. I often draw pictures like this on a whiteboard for my colleagues, so I figured I would make a nice electronic version once and for all.

Implementation

I chose to draw the images using TeX and PGF/TikZ. I originally tried using Graphviz, but unfortunately there is no way to tell it how to lay out the graph exactly. Using TikZ, I was able to create a domain-specific language to represent commit graphs, and I think the result turned out quite well.

All of the common macros are stored in common.tex. Each image source includes this file. To see an example of how to use these macros, look at commit-main.tex.

To generate the image files, I first create PDFs using pdflatex, and from there I create SVGs and PNGs using pdf2svg and convert, respectively.

Building from Source

First, the following must be installed:

sudo apt-get install make texlive-base texlive-fonts-extra pdf2svg imagemagick ghostscript

Then, build the images:

make

The result is in the ./build directory.

Pushing to gh-pages

Done via GitHubActions (.github/workflows/publish.yaml).

License

Copyright © 2010, Mark Lodato. Japanese translation © 2010, Kazu Yamamoto. Korean translation © 2011, Sean. Russian translation © 2012, Alex Sychev. French translation © 2012, Michel Lefranc. Chinese translation © 2012, wych. Spanish translation © 2012, Lucas Videla. Italian translation © 2012, Daniel Londero. German translation © 2013, Martin Funk, © 2017, Mirko Westermeier. Vietnamese translation © 2013, Hoat Le. Slovak translation © 2013, Ľudovít Lučenič. Portuguese translation © 2014, Gustavo de Oliveira. Traditional Chinese translation © 2015, Peter Dave Hello. Polish translation © 2017, Emil Wypych.

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License.

About

A visual guide to git.

marklodato.github.io/visual-git-guide/

Resources

Readme
Activity

Stars

1.4k stars

Watchers

68 watching

Forks

311 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.