629 B
629 B
title, type, language, tags, cover, dateModified
| title | type | language | tags | cover | dateModified | |
|---|---|---|---|---|---|---|
| List all git aliases | snippet | git |
|
coffee-float | 2021-04-13T21:10:59+03:00 |
Prints a list of all git aliases.
- Use
git config -lto list all variables set in the configuration file. - Use the pipe operator (
|) to pipe the output andgrep aliasto only keep aliases. - Use the pipe operator (
|) to pipe the output andsed 's/^alias\.//g'to remove thealias.part from each alias.
git config -l | grep alias | sed 's/^alias\.//g'
git config -l | grep alias | sed 's/^alias\.//g'
# st=status
# co=checkout
# rb=rebase