git 责备 - 致命:修订版“22”错误
git blame - fatal: bad revision '22'
根据此页面(http://git-scm.com/book/en/v2/Git-Tools-Debugging-with-Git
) 我应该在使用 git blame
.
时在行号之间使用逗号
但是,如果我使用 Powershell 在我的 Windows 机器上试用它:
git blame -L 12,22 <name of file>
我得到fatal: bad revision '22'
有什么问题吗?与 Powershell 有关?
尝试引用 -L
的参数(例如 -L "12,22"
)。
逗号是 powershell 中的一个运算符,因此它可能会错误地解析没有引号或类似内容的命令。
根据此页面(http://git-scm.com/book/en/v2/Git-Tools-Debugging-with-Git
) 我应该在使用 git blame
.
但是,如果我使用 Powershell 在我的 Windows 机器上试用它:
git blame -L 12,22 <name of file>
我得到fatal: bad revision '22'
有什么问题吗?与 Powershell 有关?
尝试引用 -L
的参数(例如 -L "12,22"
)。
逗号是 powershell 中的一个运算符,因此它可能会错误地解析没有引号或类似内容的命令。