Files
nixos-config/home/common/programs/git/scripts/git-squash
T
2024-10-06 14:38:05 +01:00

11 lines
128 B
Bash
Executable File

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