Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
git责备-致命:错误修订';22';_Git_Powershell_Git Blame - Fatal编程技术网

git责备-致命:错误修订';22';

git责备-致命:错误修订';22';,git,powershell,git-blame,Git,Powershell,Git Blame,根据这一页( )在使用git时,我应该在行号之间使用逗号 但是,如果我使用Powershell在Windows计算机上试用: git blame -L 12,22 <name of file> git-L 12,22 我收到致命错误:错误版本“22” 有什么问题吗?与Powershell有关吗?尝试引用-L的参数(例如-L“12,22”) 逗号是powershell中的一个运算符,因此它可能在没有引号或类似内容的情况下错误解析命令。请尝试引用-L“12,22”?逗号对powers

根据这一页( )在使用
git
时,我应该在行号之间使用逗号

但是,如果我使用Powershell在Windows计算机上试用:

git blame -L 12,22 <name of file>
git-L 12,22
我收到
致命错误:错误版本“22”


有什么问题吗?与Powershell有关吗?

尝试引用
-L
的参数(例如
-L“12,22”


逗号是powershell中的一个运算符,因此它可能在没有引号或类似内容的情况下错误解析命令。

请尝试引用
-L“12,22”
?逗号对powershell来说意味着什么,所以可能是处理不当。您使用的是什么版本的git?你能在PowerShell之外运行这个程序吗(例如通过
cmd.exe
)@EtanReisner-spot-on。