Skip to content

Instantly share code, notes, and snippets.

@jdiaz5513
Created August 6, 2019 01:11
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jdiaz5513/f97ccb232a6cc48e5efc50d8d1537d6c to your computer and use it in GitHub Desktop.
Save jdiaz5513/f97ccb232a6cc48e5efc50d8d1537d6c to your computer and use it in GitHub Desktop.
Git Abbreviations for Fish
abbr -a -U -- ga 'git add'
abbr -a -U -- gaa 'git add --all'
abbr -a -U -- gbd 'git branch -d'
abbr -a -U -- gbl 'git branch -l'
abbr -a -U -- gbm 'git branch -m'
abbr -a -U -- gc 'git commit'
abbr -a -U -- gc! 'git commit --amend'
abbr -a -U -- gcam 'git commit --all -m'
abbr -a -U -- gcan! 'git commit --all --no-edit --amend'
abbr -a -U -- gcb 'git checkout -b'
abbr -a -U -- gcl 'git checkout --ours'
abbr -a -U -- gclean 'git clean -f'
abbr -a -U -- gcm 'git commit -m'
abbr -a -U -- gcn! 'git commit --no-edit --amend'
abbr -a -U -- gco 'git checkout'
abbr -a -U -- gcol 'git checkout --ours'
abbr -a -U -- gcr 'git checkout --theirs'
abbr -a -U -- gd 'git diff'
abbr -a -U -- gf 'git fetch'
abbr -a -U -- gl 'git pull --rebase'
abbr -a -U -- gm 'git merge'
abbr -a -U -- gma 'git merge --abort'
abbr -a -U -- gmt 'git mergetool'
abbr -a -U -- gp 'git push'
abbr -a -U -- gpc 'git push -u origin (git symbolic-ref --short HEAD)'
abbr -a -U -- gpf 'git push -f'
abbr -a -U -- grb 'git rebase'
abbr -a -U -- grba 'git rebase --abort'
abbr -a -U -- grbc 'git rebase --continue'
abbr -a -U -- grbi 'git rebase -i'
abbr -a -U -- grbs 'git rebase --skip'
abbr -a -U -- gst 'git status'
abbr -a -U -- gsta 'git stash -u'
abbr -a -U -- gstp 'git stash pop'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment