为了简化我的关注点,我将其缩小到以下几点:cii = "!f() { git commit "$@"; }; f"$ git cii -m "test1"$ git cii -m "test1 and test2"
error: pathspec 'and' did not match any file(s) known to
我获得了一个,它应该是命令git rebase -i HEAD~$1,其中$1是一个传递给别名的数字。下面是我在.zshrc文件中设置的git别名:终端中的示例用法:
$ grn 3 // This should translate to git rebase -i HEAD~3我遇到的问题是,传递的整数参数