25 practical automations

Git workflows

Understand and document your repositories. Each guide includes full code, usage instructions, and ideas for making it your own.

Search this category ↗
PythonIntermediate

Build a tag timeline

List local tags by creator date with target object and annotation subject.

Git workflows
PythonIntermediate

Check pending whitespace

Validate staged and unstaged changes for whitespace errors without modifying files.

Git workflows
PythonIntermediate

Compare HEAD with a reference

Count commits unique to each side and summarize file differences against a local reference.

Git workflows
PythonIntermediate

Count author commits

Summarize author commit counts in a chosen history window.

Git workflows
PythonIntermediate

Count daily commits

Aggregate stored committer dates into daily commit counts.

Git workflows
PythonIntermediate

Explain ignored files

List ignored working-tree files with the ignore rule responsible for each.

Git workflows
PythonIntermediate

Find large tracked files

Measure regular tracked working-tree files and report those above a selected size.

Git workflows
PythonIntermediate

Find old branch tips

Flag local branches with tip commits older than a chosen number of days.

Git workflows
PythonIntermediate

Fingerprint hook files

List configured hook-directory files with size and SHA-256 without executing them.

Git workflows
PythonIntermediate

Inspect branch tracking

List local branches, upstream names, and ahead or behind markers.

Git workflows
PythonIntermediate

Inspect submodule state

Compare tracked submodule gitlinks with existing local checkout commits without initialization or updates.

Git workflows
PythonIntermediate

Inventory untracked files

List nonignored untracked files and byte counts without staging anything.

Git workflows
PythonIntermediate

List merged branches

Report local branches whose tips are reachable from a selected local reference.

Git workflows
PythonIntermediate

Rank recent file churn

Aggregate added and removed lines by path in a bounded recent history window.

Git workflows
PythonIntermediate

Review remote URLs safely

Show configured remote URLs while redacting user information, queries, and fragments.

Git workflows
PythonIntermediate

Summarize a repository

Show repository root, current branch, HEAD, and concise working-tree state.

Git workflows