a_main Asked:2020-06-17 03:47:42 +0000 UTC2020-06-17 03:47:42 +0000 UTC 2020-06-17 03:47:42 +0000 UTC git alias 命令中的感叹号是什么意思? 772 有一个 git alias 命令ac = !git add -A && git commit,意思是符号!在 git 这个词之前,为什么第二个 git 没有这个符号? 如果有解释别名符号的资源,我将很高兴看到。 git 1 个回答 Voted Best Answer aleksandr barakin 2020-06-17T04:57:01Z2020-06-17T04:57:01Z $ man git-config ... If the alias expansion is prefixed with an exclamation point, it will be treated as a shell command. 我的免费翻译: 如果别名的内容以感叹号开头,则将其视为 shell 命令。 我将添加非显而易见的(在上面的原始段落中说明):否则(即没有感叹号),别名的内容被视为调用git程序的参数列表。
我的免费翻译:
我将添加非显而易见的(在上面的原始段落中说明):否则(即没有感叹号),别名的内容被视为调用git程序的参数列表。