Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List Git aliases

How do I print a list of my git aliases, i.e., something analogous to the bash alias command?

like image 560
ma11hew28 Avatar asked Aug 15 '11 14:08

ma11hew28


People also ask

Where are git aliases stored?

Aliases are stored in git config files, which include ~/. gitconfig and path/to/project/. git/config . As a result, it's possible to store aliases in a per-project as well as a global state.

What are git aliases?

Git aliases are a powerful workflow tool that create shortcuts to frequently used Git commands. Using Git aliases will make you a faster and more efficient developer. Aliases can be used to wrap a sequence of Git commands into new faux Git command.

How do I edit a git alias?

Start a new branch. gitconfig file and add each alias under [alias], like so: Additionally, you can have repo-specific aliases. Just edit . git/config in the repo where you want to add the alias, and follow the same syntax.


1 Answers

 $ git config --get-regexp alias 
like image 129
William Pursell Avatar answered Sep 20 '22 18:09

William Pursell