首页 > 其他 > 详细

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

时间:2016-08-12 06:37:45      阅读:187      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!