Created
September 6, 2023 23:02
-
-
Save jdiaz5513/d764d6504a88bf9e7898571fdcbfa28f to your computer and use it in GitHub Desktop.
Git Shortcuts (Fish Shell)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abbr ga "git add" | |
abbr gaa "git add --all" | |
abbr "gbc!" "git for-each-ref --format '%(refname:short) %(upstream:track)' | awk '$2 == \"[gone]\" {print $1}' | xargs -r git branch -D" | |
abbr gbd "git branch -D" | |
abbr gbl "git branch -l" | |
abbr gbm "git branch -m" | |
abbr "gc!" "git commit --amend" | |
abbr gca "git commit --all" | |
abbr "gca!" "git commit --all --amend" | |
abbr gcam "git commit --all -m" | |
abbr gcb "git checkout -b" | |
abbr gcm "git commit -m" | |
abbr "gcn!" "git commit --no-edit --amend" | |
abbr gco "git checkout" | |
abbr gcp "git cherry-pick" | |
abbr gd "git diff" | |
abbr gds "git diff --staged" | |
abbr gl "git pull --rebase" | |
abbr gm "git merge" | |
abbr gmt "git mergetool" | |
abbr gpc "git push -u origin (git rev-parse --abbrev-ref HEAD)" | |
abbr gpf "git push --force" | |
abbr "gpf!" "git add --all && git commit --no-edit --amend && git push --force" | |
abbr grb "git rebase" | |
abbr grba "git rebase --abort" | |
abbr grbc "git rebase --continue" | |
abbr grbi "git rebase -i" | |
abbr grbs "git rebase --skip" | |
abbr gst "git status" | |
abbr gsta "git stash -u" | |
abbr gstp "git stash pop" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment