Skip to content

Instantly share code, notes, and snippets.

@forsaken1
Last active April 4, 2019 16:04
Show Gist options
  • Save forsaken1/9d5c362f5c3477bc6fef to your computer and use it in GitHub Desktop.
Save forsaken1/9d5c362f5c3477bc6fef to your computer and use it in GitHub Desktop.
git aliases for *nix
alias s="git status"
alias a="git add"
alias c="git commit -m"
alias p="git push origin"
alias pu="git pull origin"
alias ch="git checkout"
alias cb="git checkout -b"
alias cl="git clone"
alias di="git diff"
alias am="git commit --amend"
alias pur="git pull --rebase origin master"
alias br="git branch"
alias rubo="bundle exec rubocop -R"
alias spec="bundle exec rspec"
alias check="rubo; spec"
alias ser="bundle exec rails s"
alias reset='bundle exec rake db:drop db:create db:migrate'
alias reset_test='bundle exec rake db:drop db:create db:migrate RAILS_ENV=test'
alias cuc='bundle exec cucumber'
@forsaken1
Copy link
Author

@forsaken1
Copy link
Author

forsaken1 commented Mar 30, 2016

После добавления в .bash_profile выполнить:
source ~/.bash_profile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment