#command-line

4 articles tagged “command-line”.

A terminal running a Bash script that starts with set -euo pipefail
LinuxIntermediate

Writing Bash Scripts That Don't Break

Most shell scripts work fine until a file name has a space in it or a command fails halfway through. Learn strict mode, quoting, safe temporary files and cleanup traps, then put it all together in a real backup script.

6 min read
A commit pointing to a tree, which points to blobs and a subtree, with the main branch and HEAD pointing at the commit
GitAdvanced

How Git Really Works: Blobs, Trees, Commits and Refs

Open the .git folder and see Git for what it is: a content-addressed object store with movable pointers on top. Build a commit by hand and finally understand rebase, reset and the reflog.

7 min read