A collection of scripts I wrote for various tasks
firefox-disable-private-window-shortcut/README.md: Disable Shift+Cmd+P in Firefox (macOS) so web apps can use it. Usecd firefox-disable-private-window-shortcut && make installorcd firefox-disable-private-window-shortcut && make uninstall.
bin/restack-branch-refs: Restack a linear branch stack after rebasing the tip branch. Intended workflow ismain -> branch1 -> branch2 -> fork, then run from the rebased tip branch.- Dry run:
restack-branch-refs --base main --tip fork - Apply locally:
restack-branch-refs --base main --tip fork --apply - Apply and push:
restack-branch-refs --base main --tip fork --push - Scope to your stacked branch names if needed:
restack-branch-refs --base main --tip fork --match-prefix feat/ --match-prefix fix/ - Show the rewritten series with
git range-diff:restack-branch-refs --base main --tip fork --range-diff - Assumes a linear stack on the old tip branch first-parent chain and that
<tip>@{1}still points to the pre-rebase tip.
- Dry run: