Skip to content

Instantly share code, notes, and snippets.

@lucassmacedo
Last active April 5, 2017 12:27
Show Gist options
  • Save lucassmacedo/d4809e6f6b0aaef068cf5c930d514923 to your computer and use it in GitHub Desktop.
Save lucassmacedo/d4809e6f6b0aaef068cf5c930d514923 to your computer and use it in GitHub Desktop.
Git alias
alias art='php artisan'
alias ci='composer install'
alias cu='composer update'
alias cdo='composer dump-autoload -o'
alias am='php artisan migrate'
alias amr='php artisan migrate:refresh'
alias ams='php artisan migrate --seed'
alias amrs='php artisan migrate:refresh --seed'
alias ads='php artisan db:seed'
alias cda='composer dump-autoload -o'
alias amc='php artisan make:controller'
alias ame='php artisan make:event'
alias ammo='php artisan make:model'
alias amm='php artisan make:migration:schema'
alias amp='php artisan make:migration:pivot'
alias ams='php artisan make:seed'
alias ampr='php artisan make:provider'
alias arl='php artisan route:list'
Git Alias
[alias]
gs = status
ck = checkout
cm = commit
br = branch
df = diff
lp = log -p
ckm = checkout master
fe = fetch origin
hr = reset origin/master --hard
me = config user.name
bn = !git for-each-ref --format='%(refname:short)' refs/heads/master
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
today = !git all --since='12am' --committer=\"`git me`\"
today-all = !git all --since='12am'
sync = !git update && git co master && git pull && git co @{-1}
resync = !sh -c 'BRANCH_NAME=master && git com && git fe && git hr && git rebase master '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment