根据此页面(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 中的一个运算符,因此它可能会错误地解析没有引号或类似内容的命令。
关于git blame - 致命的 : bad revision '22' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31349452/