Elena' s AI Blog

Git Commands and a Contribution Workflow

07 Nov 2022 (updated: 27 Jul 2026) / 2 minutes to read

Elena Daehnhardt


Precise version control workflow illustration


TL;DR:
  • A collection of useful Git commands and contribution workflow examples, plus a JavaScript application for learning Git branching interactively in the browser.

Previous: Part 0 — GIT in 10 minutes

Next: Part 3 — Storing Your Local Project to GitHub

Hello, my dear readers. How are you doing?

Git is a distributed version control system [4] that tracks changes to source files and lets multiple developers collaborate on the same codebase through branches, commits, and merges. This post collects the Git commands I use most, a contribution workflow, and an interactive tool for learning Git branching in the browser.

I have not posted much lately — busy stretch. But I found something worth sharing: a JavaScript application for learning Git branching, built by Peter Cottle and available at Learn Git Branching [1]. It simulates a Git repository right in your browser and draws the commit and branching graph as you type git commands, so you can actually watch what each command does to the tree. Simply marvelous.

I also noticed I only ever reach for a handful of Git commands, following pretty much the same workflow every time. So I built myself a cheatsheet Winner sheet with the commands I use most, for quick reference later. I used Python and the ReportLab library [3] to generate the PDF. Grab it from my GitHub repository as a PDF, or read the Markdown version [2] directly. I want us to be winners :)

Have a great week!

References

1. Learn Git Branching by Peter Cottle

2. Git Winner Sheet (Markdown)

3. ReportLab Documentation

4. Git - About Version Control (Pro Git book)

Did you like this post? Please let me know if you have any comments or suggestions.

Git posts that might be interesting for you




desktop bg dark

About Elena

Elena, a PhD in Computer Science, simplifies AI concepts and helps you use machine learning.

Citation
Elena Daehnhardt. (2022) 'Git Commands and a Contribution Workflow', daehnhardt.com, 07 November 2022. Available at: https://daehnhardt.com/blog/2022/11/07/edaehn-git/
All Posts