This answer builds upon the [answer][1] by [johnny][2]. I got it from stackoverflow user A-B-B.
It applies if you're not using [git-alias
][3] from [git-extras
][4].
On Linux, run once:
git config --global alias.alias "! git config --get-regexp ^alias\. | sed -e s/^alias\.// -e s/\ /\ =\ /"
This will create a permanent git alias named alias
which gets stored in your ~/.gitconfig
file. Using it will list all of your git aliases, in nearly the same format as they are in the ~/.gitconfig
file. To use it, type: