Add "git undo commit" and update README
This commit is contained in:
parent
d77cda3a31
commit
65a868210d
2 changed files with 13 additions and 1 deletions
9
bin/get
9
bin/get
|
|
@ -54,6 +54,15 @@ else
|
|||
fi
|
||||
;;
|
||||
|
||||
undo)
|
||||
case "$2" in
|
||||
commit)
|
||||
echo Undoing last commit
|
||||
git reset --soft HEAD~1
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
|
||||
branch)
|
||||
echo 'Switching to branch'
|
||||
if [ -z "$2" ]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue