Add 'g amend' (and also 'g ammend' because I have trouble spelling that one)

This commit is contained in:
Will Hilton 2017-03-26 12:33:17 -04:00
parent a7bfe90bf5
commit 6d70d51984
No known key found for this signature in database
GPG key ID: 9609B8A5928BA6B9
2 changed files with 5 additions and 0 deletions

View file

@ -38,6 +38,7 @@ g | git equivalent
g commit | Prompts for commit message inline, rather than opening a text editor
g commit *message* | git commit -m *message*
g uncommit | git reset --soft HEAD~1
g ammend | git commit --amend --no-edit
g branch *branch* | stashes working tree, creates or switches branch, and checks out branch
g rmbranch *branch* | git branch -d *branch* *TODO: rename?*
g tag *tag* | git tag *tag*

4
bin/g
View file

@ -167,6 +167,10 @@ uncommit)
git reset --soft HEAD~1
;;
amend | ammend)
git commit --amend --no-edit
;;
'@' | branch)
echo 'Switching to branch'
if [ -z "$2" ]; then