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

4 (3 Votes)
0
3
1
Sg qy 105 points

                                    $ git config --global alias.co checkout
$ git config --global alias.br branch
$ git config --global alias.ci commit
$ git config --global alias.st status

3 (1 Votes)
0
3
1

                                    $ git config --get-regexp alias

3 (1 Votes)
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

4 (4 Votes)
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

4.33 (3 Votes)
0
0
8
Dr D 105 points

                                    $ git config --get-regexp alias

0
0
4.17
6
Arindom 110 points

                                    # 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

4.17 (6 Votes)
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'

3.5 (10 Votes)
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'

0
0
3.7
10
Jmbejara 80 points

                                    git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.com commit
git config --global alias.stat status

3.7 (10 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
add aliases of git bash make git alias git bash use aliases linux git aliases aliases in git bash git aliases commands git bash set alias how to set alias in git bash best git config alias list can you do aliases for git create bash alias on git bash windows what is alias in git whats alias in git shell alias git git aliases howto git shell aliases git alias without git add aliases in git bash git aliases windows git alias only works with bash git best aliases git aliases cli top git aliases my git alias git bash aliasrc git show command alias set up git aliases git useful alias git show alias list custom git alias famous git alias how to make alias git git bash add alias git setup alias git define alias git bash alias windows git bash aliasing how to write git aliases setting git aliases set up the git alias set git aliases repository alias git git alias syntax list all aliases git git alias list for windows best git aliases add alias to git bash how to create alias in git add alias git bash useful git commands to alias how to create a alias in git bash setup git alias how to make an alias git git bash commands aliases make git bash alias in windows alias git bash windows how to create git alias where are git aliases usefull git aliases git cmd alias list add alias in git bash git list alias git alias echo git bash aliasles ll alias on git bash insert alias in git bash git aliases list git yolo git alias set alias git bash create alias see the aliases in git how to set alias commands git git bash windows alias git alias bash commands git alias bash commabds git list alias commands useful git aliases git alias execute shell command how to create a git alias git aliases best how to create git aliases git create alias alias git cmd bash aliases gist setup git aliases git viewing a list of aliases git list all aliases alias in git git bash make alias git aliase how to list all git aliases set git alias git command alias bash gitbash alias add git alias how to create alias for git commands git alias web git alias commands git commands alias best git alias check git aliases best alias git alias on git bash git alias logline git alias --oneline creating alias git bash list alias git what is git alias git aliasws git alias file location how to create alias in git bash git bash alias file why use aliasing in git git alias command where to put git aliases git bash directory alias Git bash aliases bash git aliases git bash list aliases create git aliases git alias best windows git bash alias git list aliases alias for git commands .bashrc alias for git commands how to alias in git bash git alias do git bash aliases for git alias for git alias description git list git aliases git alias script git bash windows aliases git alias shell script windows where is git alias how to make git aliases git basic alias alias git commands git bash alias git all alias bashrc git aliases use alias from gitconfig git create alias command git show all aliases alias git config how to see all alias in git cli git aliases add git log to alias git add alias git show alias add git alias ubuntu git see alias git alias global git see all aliases alias git config commands add alias git bash windows 10 how to view git aliases how do you set a bash alias in git bash create a hist alias in git gitconfig alias show git aliases git how to read all aliases git alias files that can be staged git alias new files git alias file create git alias can i see my git alias windows git bash aliases file git set alias windows git bash aliases git alias list how to check your git alias set aliases git bash git alias checkout edit aliases git install alias commands for git see git alias git list custom commands git alias setup aliases git alias not working git set alias git git alias list best git alias bash view git aliases git clone alias alias github git add [alias] git configure alias show all git alias git alias windows git show aliases how to check git aliases windows 10 alias git git add to shortcut git config --global alias git shortcut commands git config shortcuts what is the number sign used for in git aliases? edit git alias git st see git config alias git alias for seeing all aliases git list all global aliases git bash alias commands git add shortcut config afficher tout les alias git git aliases alias git git alias display alias git bash aliasgit bash git command shotrcut file git config set alias how to add alias on git config git config alias git add aliases create alias in git how to create alias git how see aliases command in git create alias git git command alias git alias gitconfig GIT ALAIS creating global alias for git commands git shortcuts git create aliase git alias
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source