Last active
April 4, 2019 16:04
-
-
Save forsaken1/9d5c362f5c3477bc6fef to your computer and use it in GitHub Desktop.
git aliases for *nix
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 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' |
После добавления в .bash_profile
выполнить:
source ~/.bash_profile
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
проверить:
undo = reset HEAD~1 --mixed
http://haacked.com/archive/2014/07/28/github-flow-aliases/
http://githowto.com/aliases
https://git.wiki.kernel.org/index.php/Aliases