码迷,mamicode.com
首页 > 其他好文 > 详细

[Practical Git] Show who changed a line last with git blame

时间:2016-08-12 06:40:28      阅读:146      评论:0      收藏:0      [点我收藏+]

标签:

When working on a file, we often want to know who made certain changes last; we can use git blame to see details about the last modification of each line in a file. In this lesson, we show and example of using git blame to see who made the last change on a line in a file, and then we use the output of git blame to use in other tools like git log to see the full context of why the change was made and what other parts of the code base were effected at the same time as the line from git blame.

 

git blame getURL.js  // check who and when made the last changes to the file

 

Then you will get the commit id, you can use git log to see the detial and commit message:

git log <commit_id> -p

 

[Practical Git] Show who changed a line last with git blame

标签:

原文地址:http://www.cnblogs.com/Answer1215/p/5763453.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!