Skip to content

Instantly share code, notes, and snippets.

@josfaber
Last active January 30, 2020 07:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josfaber/9ab3ddabc324c792ffd17e1eda8cffa0 to your computer and use it in GitHub Desktop.
Save josfaber/9ab3ddabc324c792ffd17e1eda8cffa0 to your computer and use it in GitHub Desktop.
Bash aliases for common git and grunt operations
alias l="ls -l"
alias gf="git fetch"
alias gs="git status"
alias gfs="git fetch && git status"
alias gi="git init && gac 'Initial commit'"
alias gp="git push" # + remote & branch names
alias gl="git pull" # + remote & branch names
alias gpo="git push origin" # + branch name
alias glo="git pull origin" # + branch name
alias gpom="git push origin master"
alias glom="git pull origin master"
alias gac="git add . && git commit -m" # + commit message
alias gw="grunt watch"
alias gb="grunt build"
alias sr="npm run serve"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment