Shell/Bash: git bash alias commands Example


Shell/Bash Example: This is the "git bash alias commands" Example. compiled from many sources on the internet by

git bash alias commands

Follow below steps:
a) Open the file .bashrc which is found in location C:\Users\USERNAME\.bashrc

If file .bashrc not exist then create it using below steps:
1. Open Command Prompt and goto C:\Users\USERNAME\.
2. Type command notepad ~/.bashrc
It generates the .bashrc file.

b) Add below sample commands of WP CLI, Git, Grunt & PHPCS etc.

# ----------------------
# Git Command Aliases
# ----------------------
alias ga='git add .'
alias gaa='git add .'
alias gaaa='git add --all'

# ----------------------
# ----------------------
alias wpthl='wp theme list'
alias wppll='wp plugin list'

* Summary: This "git bash alias commands" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!