Created
February 16, 2018 13:42
-
-
Save graysonhicks/81d45bcfe64a618f416371763a6a2637 to your computer and use it in GitHub Desktop.
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
# --> imports auto completion file for git | |
source ~/.git-completion.bash | |
# --> OTHER ALIASES | |
alias aliases="atom ~/.bash_profile" | |
# --> CUSTOM GIT ALIASES | |
alias gaa="git add ." | |
alias gp="git push" | |
__git_complete gp _git_push | |
alias gpo="git push origin" | |
alias gpsuo="git push --set-upstream origin" | |
__git_complete gpsuo _git_checkout | |
alias gcmsg="git commit -m" | |
alias gco="git checkout" | |
__git_complete gco _git_checkout | |
alias gcob="git checkout -b" | |
alias gpu="git pull" | |
__git_complete gpu _git_pull | |
alias gpuom="gpu origin master" | |
alias gmer="git merge" | |
__git_complete gmer _git_checkout _git_merge | |
alias gs="git status" | |
alias gb="git branch" | |
alias gbd="git branch -d" | |
alias gprunedry="git remote prune --dry-run origin" | |
alias gprune="git remote prune origin" | |
alias gprunelocal="git fetch --prune && git branch -r | awk '{print \$1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print \$1}' | xargs git branch -d" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment