Skip to content

Instantly share code, notes, and snippets.

@mehranhadidi
Created December 13, 2016 13:12
Show Gist options
  • Save mehranhadidi/e7a90dc5614493a127f73e25c5a4341b to your computer and use it in GitHub Desktop.
Save mehranhadidi/e7a90dc5614493a127f73e25c5a4341b to your computer and use it in GitHub Desktop.
useful alias on ubuntu
# add these lines to ~/.bashrc
#aliases
source ~/.aliases
# create file ~/.aliases and add these lines to that file.
# git
alias gs='git status'
alias ga='git add'
alias gc='git commit -m'
alias gl='git log'
alias gp='git push'
alias nah='git reset --hard && git clean -df'
alias gb='git branch'
alias gbc='git checkout'
# laravel
alias pa='php artisan'
# close & open shell to use aliases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment