List Git aliases

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

    If you know the name of the alias, you can use the --help option to describe it. For example:

    $ git sa --help
    `git sa' is aliased to `stash'
    
    $ git a --help
    `git a' is aliased to `add'
    

提交回复
热议问题