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

Source: Internet
Author: User

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

git blame geturl.js  //  check who and where made the last changes to the file

Then you'll 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.