感叹号在git config alias中意味着什么? [英] What does the exclamation mark mean in git config alias?

查看:263
本文介绍了感叹号在git config alias中意味着什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  git config --global alias.out \!git fetch; git cherry origin / HEAD -v

这是什么意思?是否等于这样:

  git config --global alias.out'!git fetch; git cherry origin / HEAD -v',

我对感叹号感到困惑,任何帮助都会赞赏。

解决方案

git-config使用手册 b
$ b


如果别名扩展的前缀为感叹号,被视为一个shell
命令。



I just see a git config command as below:

git config --global alias.out \!"git fetch; git cherry origin/HEAD -v"

what does it mean? Is it equal to this:

git config --global alias.out '!git fetch; git cherry origin/HEAD -v',

I am confused with the exclamation mark,any help will be appreciated.

解决方案

From the git-config manual:

If the alias expansion is prefixed with an exclamation point, it will be treated as a shell command.

这篇关于感叹号在git config alias中意味着什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆