You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
180 B
11 lines
180 B
#!/bin/sh
|
|
|
|
if test $# -eq 0; then
|
|
git reset --hard HEAD~1
|
|
else
|
|
if `echo $1 | grep -q [^[:digit:]]`; then
|
|
echo $1 is not a number
|
|
else
|
|
git reset --hard HEAD~$1
|
|
fi
|
|
fi
|