Files
nix/home/common/programs/git/scripts/git-squash
T
2024-10-06 17:38:00 +01:00

11 lines
136 B
Bash
Executable File

#!/usr/bin/env bash -e
branch=$(git branchname)
base="$1"
shift
git reset $(git merge-base $base $branch)
git add -A
git commit "$@"