mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 15:36:21 -04:00
11 lines
180 B
Bash
Executable file
11 lines
180 B
Bash
Executable file
#!/bin/sh
|
|
|
|
if test $# -eq 0; then
|
|
git reset --soft HEAD~1
|
|
else
|
|
if `echo $1 | grep -q [^[:digit:]]`; then
|
|
echo $1 is not a number
|
|
else
|
|
git reset --soft HEAD~$1
|
|
fi
|
|
fi |