List Git aliases

后端 未结 16 2024
暖寄归人
暖寄归人 2020-12-02 03:43

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

16条回答
  •  情书的邮戳
    2020-12-02 03:51

    I created a git alias called (strangely enough) alias for exactly this purpose... handy from time to time if you use aliasing enough...

    $ git config --global alias.alias "config --get-regexp ^alias\."

    Note, the regex makes sure the line starts with alias..

提交回复
热议问题