Git:谁修改了这一行? [英] Git: Who has modified this line?

查看:108
本文介绍了Git:谁修改了这一行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我在我的应用程序中发现了一个错误,有时我需要知道哪些提交已经影响到了错误源代码行。我想知道哪个是使用Git最好的方法。

If I found a bug in my application, sometimes I need to know which commits have affected to the bug source code line. I'm wondering which is the best approach to do it with Git.

推荐答案

我会使用 git blame 命令。这几乎就是它的目的。文档应该让你开始。

I'd use the git blame command. That's pretty much exactly what it is for. The documentation should get you started.

这篇关于Git:谁修改了这一行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆