260525.4 · c6e99ee0aa4c505f9a2624cdc0aec2ff04e594b2
bin: add `git rebase` alias
This is a separate script instead of an alias to avoid the prompt overhead of getting the name of the master/main branch. Lol.
Kind of crazy it's been what... almost 20 years of using git and I've never set up an alias/script for this command.
I probably should switch to jj at some point. I hear things are lovely over yonder.
reading declarations
@@ -0,0 +1,7 @@+#!/usr/bin/env bash++branch="$1"+if [ -z "$branch" ]; then+ branch="$(git-master-name)"+fi+exec git rebase -i "$branch"