Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要得到
例如,鉴于此提交,我想获得compat/unsetenv.c和5,6,7。
我试图使用
git show <commit-id>
并对其进行一些脏字符串匹配。我可以逃脱
| grep +++
对于文件名,但我发现无法让 git 在 + 号旁边显示行号,就像在 GitHub Web 界面中一样。
有没有其他方法可以找到(添加的)行号?