How do I print a list of my git aliases, i.e., something analogous to the bash alias
command?
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.
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.
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.
$ git config --get-regexp alias
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With