git blame - 致命的 : bad revision '22'

标签 git powershell git-blame

根据此页面(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/

相关文章:

wpf - Powershell 包 uri 对象

git - 查看谁最后更改了 Git 存储库中的特定行

git - 将文件从 git 传输到谷歌云存储桶

powershell - 如何使用 Powershell 读取登录事件并查找用户信息?

linux - 在 echo 文件中终止 Powershell

git - SourceTree 中的 git-blame 在哪里

Git-Tf 移动大型 Tfs 项目的部分

git - 在另一台计算机上使用 Github

Git 在错误的位置寻找我的 SSH key