Back to the XOmB OS archive

Git guide and cheat sheet

A text guide and a printable reference for the source-control workflow taught by the old XOmB wiki.

Using Git

The original wiki introduced Git through the process of getting the XOmB source and contributing changes. A modern equivalent starts with git clone <url>. Inspect your tree with git status, create a branch with git switch -c <name>, stage a file with git add <file>, and review the staged change with git diff --staged before committing.

Use git fetch to retrieve updates without changing your work. git pull --ff-only lets you apply upstream updates when your branch can move forward without a merge. For a commit already shared with others, use git revert <commit> to record a reversal as a new commit.

Printable cheat sheet

The historical Git wiki linked to a PNG cheat sheet. The image at that address is an original replacement covering the same day-to-day workflow. The commands above and the official Git reference provide text alternatives to the image.

Git command cheat sheet covering setup, reviewing changes, branches, sync and undo
Download the Git cheat sheet (PNG)