我经常使用以下命令
$git commit -am "something message"
设置别名后,不幸的是效果不佳。
.gitconfig文件是
[alias]
am = "!f(){ git commit -am \"$1\";};f"
然后我尝试了
$ git am "modified something logic"
发生错误。
fatal: could not open 'filepath//modified something logic: No such file or directory
设置别名有什么问题??
谢谢。
am
是内置命令:
$ git help am
NAME
git-am - Apply a series of patches from a mailbox
为您的别名选择另一个名称(并检查它是否已被使用...)
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句