Created
September 7, 2018 06:07
-
-
Save maheshwaghmare/b53ef7f48637d1c0df92d5cedba79175 to your computer and use it in GitHub Desktop.
Keyboard shortcut/aliases for the WP CLI, Git, Grunt & PHPCS commands for windows
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
# ---------------------- | |
# WP CLI | |
# ---------------------- | |
alias wpthl='wp theme list' | |
alias wppll='wp plugin list' | |
# ---------------------- | |
# Git Command Aliases | |
# ---------------------- | |
alias ga='git add' | |
alias gaa='git add .' | |
alias gaaa='git add --all' | |
alias gau='git add --update' | |
alias gb='git branch' | |
alias gbd='git branch --delete ' | |
alias gc='git commit' | |
alias gcm='git commit --message' | |
alias gcf='git commit --fixup' | |
alias gco='git checkout' | |
alias gcob='git checkout -b' | |
alias gcom='git checkout master' | |
alias gcos='git checkout staging' | |
alias gcod='git checkout develop' | |
alias gd="git diff -- . ':!*.min.js' ':!*.min.css' ':!*.min-rtl.css'" | |
alias gda='git diff HEAD' | |
alias gi='git init' | |
alias glg='git log --graph --oneline --decorate --all' | |
alias gld='git log --pretty=format:"%h %ad %s" --date=short --all' | |
alias gm='git merge --no-ff' | |
alias gma='git merge --abort' | |
alias gmc='git merge --continue' | |
alias gpu='git pull origin' | |
alias gpr='git pull --rebase' | |
alias gpp='git push origin' | |
alias gr='git rebase' | |
alias gs='git status' | |
alias gss='git status --short' | |
alias gst='git stash' | |
alias gsta='git stash apply' | |
alias gstd='git stash drop' | |
alias gstl='git stash list' | |
alias gstp='git stash pop' | |
alias gsts='git stash save' | |
# ---------------------- | |
# Grunt Aliases | |
# ---------------------- | |
alias grr='grunt release' | |
alias grm='grunt minify' | |
# ---------------------- | |
# PHPCS | |
# ---------------------- | |
alias pb='phpcs' | |
alias pbf='phpcbf' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment