Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
504 views
in Technique[技术] by (71.8m points)

What does the exclamation mark mean in git config alias?

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.

question from:https://stackoverflow.com/questions/21083933/what-does-the-exclamation-mark-mean-in-git-config-alias

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

From the git-config manual:

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...