【发布时间】:2015-01-04 22:02:54
【问题描述】:
我使用命令git ls-tree -r $(git branch | awk '{ print $2 }') --name-only 来显示我的分支上的文件,但我试图将此命令作为别名放在我的.gitconfig 文件中,但我收到了这个错误:
$ git 列表 致命:不是有效的对象名称 $(git
我的 .gitconfig 文件:
[别名]
list = ls-tree -r $(git branch | awk '{ print $2 }') --name-only
谢谢 PD对不起我的英语
【问题讨论】:
-
"如果别名扩展前缀有感叹号,将被视为shell命令"。
标签: git bash git-config