Created
January 17, 2017 22:59
-
-
Save finbarr/9a25d741d56b696bfc6bd1615acfd4b9 to your computer and use it in GitHub Desktop.
Bash shortcuts
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 g="git" | |
alias gs="git status" | |
alias gl="git log" | |
alias ga="git add ." | |
alias gb="git branch" | |
alias gf="git fetch" | |
alias gfu="git fetch upstream" | |
alias gd="git diff" | |
alias gr="git rebase" | |
alias gm="git merge" | |
alias gmu="git merge upstream/master" | |
alias gc="git commit -m" | |
alias gsh="git show" | |
alias gch="git checkout" | |
alias gro="git rebase origin/master" | |
alias gp="git push" | |
alias gpo="git push origin" | |
alias gdo="git diff origin/master" | |
alias grio="git rebase -i origin/master" | |
alias gchm="git checkout master" | |
alias gchbm="git checkout -b master origin/master" | |
alias gbd="git branch -D" | |
alias gpf="git push -f" | |
alias mas="gfu && gmu && gpo" | |
alias gdh="git diff head" | |
alias gca="git commit --amend" | |
alias grhh="git reset --hard head" | |
alias gbm="git branch -m" | |
alias cpd="cap production deploy" | |
alias b="bundle" | |
alias be="bundle exec" | |
alias bu="bundle update" | |
alias bi="bundle install" | |
alias con="bundle exec rails c" | |
alias rdbm="bundle exec rake db:migrate" | |
alias rdbr="bundle exec rake db:rollback" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment