Skip to content

Instantly share code, notes, and snippets.

@caspark
Created March 8, 2019 04:39
Show Gist options
  • Save caspark/8befa498978b1240a25382db20710735 to your computer and use it in GitHub Desktop.
Save caspark/8befa498978b1240a25382db20710735 to your computer and use it in GitHub Desktop.
dragonfly git commands
# git and related commands (assumes you have the extra `text` bound to dragonfly `Dictation()`
"git add": Text("git add "),
"git add patch": Text("git add -p "),
"git branch": Text("git branch "),
"git checkout": Text("git checkout "),
"git clone": Text("git clone "),
"git commit": Text("git commit -v "),
"git commit message [<text>]": Text("git commit -m ''") + Key("left") + Text("%(text)s"),
"git commit all message [<text>]": Text("git commit -a -m ''") + Key("left") + Text("%(text)s"),
"git commit all": Text("git commit -va "),
"git commit amend": Text("git commit --amend "),
"git diff": Text("git diff "),
"git diff (cashed|cached)": Text("git diff --cached "),
"git graph": Text("git g "),
"git log": Text("git log "),
"git move": Text("git mv "),
"git merge": Text("git merge "),
"git merge abort": Text("git merge --abort"),
"git name": Text("git "),
"git pull": Text("git pull "),
"git pull rebase": Text("git pull --rebase"),
"git push": Text("git push "),
"git push force": Text("git push --force"),
"git remove": Text("git rm "),
"git rebase": Text("git rebase "),
"git rebase interactive": Text("git rebase -i "),
"git reset hard": Text("#git reset --hard ") + Key("left:18"),
"git reset soft": Text("#git reset --soft ") + Key("left:18"),
"git show": Text("git show "),
"git status": Text("git status "),
"git stash save": Text("git stash save "),
"git stash save message [<text>]": Text("git stash save ''") + Key("left") + Text("%(text)s"),
"git stash pop": Text("git stash pop "),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment