Skip to content

Instantly share code, notes, and snippets.

@ChrisLahaye
ChrisLahaye / git-fixup
Last active November 16, 2025 19:22
~/.local/bin/git-fixup
#!/bin/bash -e
#
# git-fixup - creates a fixup commit and squashes it into the given commit using a rebase.
#
# Usage:
# git fixup <commit> [args...]
#
# Options:
# <commit> The commit to "fix up".
# [args...] These arguments are passed verbatim to git-rebase.