List Git aliases

后端 未结 16 1959
暖寄归人
暖寄归人 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:52

    Using git var and filtering only those that start with alias:

    git var -l | grep -e "^alias"
    

提交回复
热议问题