Skip to content

Instantly share code, notes, and snippets.

@igorbabko
Created April 14, 2017 06:19
Show Gist options
  • Save igorbabko/ffcb54cdb03aaf5199e0985c03c15ba3 to your computer and use it in GitHub Desktop.
Save igorbabko/ffcb54cdb03aaf5199e0985c03c15ba3 to your computer and use it in GitHub Desktop.
# Git aliases
alias gs="git status"
alias ga="git add"
alias gaa="git add ."
alias gc="git commit"
alias gp="git push"
alias gpl="git pull"
alias gcm="git commit -m"
alias gl="git log"
alias gr="git reset"
alias gcl="git clone"
alias nah="git reset --hard && git clean -df"
alias wip="git add . && git commit -m 'WIP'"
alias wipa="git add . && git commit --amend -m 'WIP'"
# Laravel aliases
alias tinker="php artisan tinker"
alias routes="php artisan route:list"
alias art="php artisan"
alias serve="php artisan serve"
alias migrate="php artisan migrate"
alias seed="php artisan db:seed"
alias db="php artisan migrate:refresh --seed"
alias auth="php artisan make:auth"
alias m="php artisan migrate:refresh --seed"
alias controller="php artisan make:controller"
alias model="php artisan make:model"
alias seeder="php artisan make:seeder"
alias migration="php artisan make:migration"
alias provider="php artisan make:provider"
@chisumo2016
Copy link

How do u create an alias?

@chisumo2016
Copy link

Do u have any snippet for phpstorm

@richardkeep
Copy link

Hi @chisumo2016

You need to add them to ~/.bashrc file and then run source ~/.bashrc to reload the file.

@ldiebold
Copy link

Found this on google, thankyou!
Love the idea of wip

@igorbabko
Copy link
Author

Hey @chisumo2016

Sorry, somehow I've missed the discussion under this gist.

Apparently you've resolved everything already. Are there still some questions that you'd like to ask?

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