我想设置一个git别名来快速配置我的user.name
和user.email
。git别名中的多个git配置
我试图与--add
选择玩,但我不能做这样的事情:
[alias]
cfTest = config --add user.email "[email protected]" --add user.name "test"
我得到的是:
error: wrong number of arguments
我想用git做别名,但如果不可能,我会用普通的bash别名来做。
你会怎么做?
对'--add'标志的描述如下:*在选项中添加一个新行而不更改任何现有值。这与在'--replace-all' *中提供'^ $'作为value_regex相同。我不认为这就是你想要的。 – Jubobs 2014-09-28 17:38:38