git aliases
# Alias to list all saved alias
git config --global alias.alias "!git config --get-regexp ^alias\."
#then
git alias
4
3
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.com commit
git config --global alias.stat status
Thank you!
3
0
3
1
$ git config --global alias.co checkout
$ git config --global alias.br branch
$ git config --global alias.ci commit
$ git config --global alias.st status
Thank you!
1
0
3
1
$ git config --get-regexp alias
Thank you!
1
0
4
4
# Setup short form of commands to save keystrokes
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.ci commit
git config --global alias.st status
Thank you!
4
0
4.33
2
$ git config --global alias.co checkout
$ git config --global alias.br branch
$ git config --global alias.ci commit
$ git config --global alias.st status
Thank you!
2
0
0
8
$ git config --get-regexp alias
Thank you!
8
0
4.17
6
# Setup short form of commands to save keystrokes
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.ci commit
git config --global alias.st status
Thank you!
6
0
3.5
10
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'
# ----------------------
# WP CLI
# ----------------------
alias wpthl='wp theme list'
alias wppll='wp plugin list'
Thank you!
10
0
0
0
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'
# ----------------------
# WP CLI
# ----------------------
alias wpthl='wp theme list'
alias wppll='wp plugin list'
Thank you!
0
0
3.7
10
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.com commit
git config --global alias.stat status
Thank you!
10
0
Are there any code examples left?
New code examples in category Shell/Bash