Created
June 15, 2016 17:30
-
-
Save Katee/fee42e25f7a598e984b11f35c5b7f8e2 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
alias gs='git status' | |
alias gst='git stash' | |
alias gsp='git stash pop' | |
alias gcm='git ci -m' | |
alias gl='git l' | |
alias gd='git diff' | |
alias gdc='git diff --cached -w' | |
alias gpl='git pull' | |
alias gps='git push' | |
alias gnb='git nb' # new branch aka checkout -b | |
# This isn't an alias for your shell but needs to be added to the [alias] section of the file you get with git config -e --global | |
# Deletes all branches that are already merged into `master` or `develop` | |
# Source: http://stackoverflow.com/a/21857717 | |
xb = "!git branch --merged | grep -v '\\*\\|master\\|develop' | xargs -n 1 git branch -d" | |
# not git, but I use them all the time! | |
alias be='bundle exec' | |
alias ber='bundle exec rspec' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment