1
0
Fork 0
dotfiles/.local/bin/scripts/grt
2026-01-06 07:36:53 +03:00

13 lines
186 B
Bash
Executable file

#!/bin/bash
args=()
shopt -s extglob
while [ "$#" -gt 0 ]; do
case "$1" in
+(^)) args+=("HEAD$1");;
*) args+=("$1");
esac
shift
done
git reset "${args[@]}"