我正在尝试在我的.gitconfig中添加一个多命令git别名per:YUI Gallery Doc
我使用的是msysgit bash shell中的git。文档中的两个命令对我都不起作用:
[aliases]
pu = !"git fetch origin -vn git fetch upstream -vn git merge upstream/master"提供:
$ git pu
Enter passphrase for key '/c/Users/mjhm/.ssh/id_rsa':
fatal: Couldn't find remote ref git然而,
[alias]
pu = !"git fetch origin -v; git fetch upstream -v; git merge upstream/master"提供:
$ git pu
error: unknown switch `;'
usage: git fetch [<options>] [<repository> [<refspec>...]]
...如何在msysgit中使用多命令别名?
发布于 2010-11-08 21:53:49
Yahoo UI文档似乎使用了一种与documented by git不同的方法来链接git命令。
通过应用该逻辑,我将使用以下代码行:
pu = ! git fetch origin -v && git fetch upstream -v && git merge upstream/master(我认为在windows版本中,"n“应该是"\n”。但这在msysgit bash中不起作用--也许在cmd.com中可以起作用)
https://stackoverflow.com/questions/4124148
复制相似问题