Skip to content

Instantly share code, notes, and snippets.

@damien-roche
Created October 21, 2014 13:25
Show Gist options
  • Save damien-roche/de11565bc69cf932786b to your computer and use it in GitHub Desktop.
Save damien-roche/de11565bc69cf932786b to your computer and use it in GitHub Desktop.
# Working with Git
alias g='git'
alias gst='git status'
alias gc='git commit'
alias gca='git commit -a'
alias ga='git add'
alias gco='git checkout'
alias gb='git branch'
alias gm='git merge'
alias gd="git diff"
# Ruby aliases
alias bi='bundle install'
# Rails aliases
alias rc='rails console'
alias rd='rails destroy'
alias rdb='rails dbconsole'
alias rg='rails generate'
alias rgm='rails generate migration'
alias rp='rails plugin'
alias ru='rails runner'
alias rs='rails server'
alias rsd='rails server --debugger'
# Rake aliases
alias rdm='rake db:migrate'
alias rdr='rake db:rollback'
alias rdc='rake db:create'
alias rds='rake db:seed'
alias rdd='rake db:drop'
alias rdtc='rake db:test:clone'
alias rdtp='rake db:test:prepare
alias rdmtc='rake db:migrate db:test:clone'
alias rlc='rake log:clear'
alias rn='rake notes'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment