Home › coding › git github › git blame

Git Blame — Free Git & GitHub Tutorial

Learn Git Blame in Git & GitHub with a free, beginner-friendly tutorial, examples and practice for Indian students on Syllab.in.

✓ 100% Free ✓ No Login Needed ✓ NCERT / CBSE Aligned ✓ Download as PDF

TL;DR: Learn Git Blame in Git & GitHub with a free, beginner-friendly tutorial, examples and practice for Indian students on Syllab.in.

Written & reviewed by the Syllab.in Academic Team (CBSE/NCERT subject experts) · Updated Jul 14, 2026

🤖 Stuck on any question? Ask Syllab's free AI Tutor for a step-by-step explanation — instant, unlimited, no login.

Git Blame in Git & GitHub

git blame shows who wrote each line of code and when. It answers "Who added this line?" and "When was it added?". Useful for understanding code history and reaching out to the original author.

On GitHub, you can click on a line to see the commit and author. In the terminal, `git blame file.js` shows line-by-line authorship.

Arjun finds a strange line of code and wonders who added it. He uses `git blame` to see "Priya added this on 2024-01-15 in commit abc123 for fixing issue #42".

Git Blame — Syntax

git blame <file>                # Show authorship of each line
git blame -L 10,20 <file>       # Blame specific lines 10-20

Learn Git Blame step by step with Syllab's free interactive Git & GitHub tutorial — runnable code examples, practice exercises and instant AI feedback, all free with no signup. Explore the full Git & GitHub course →

Explore:

  • Syllabus
  • Practice
  • Mock Tests
  • NCERT Solutions
  • Coding
  • GK Quiz
  • Career Predictor
  • AI Tutor
  • Live Quiz
  • Doubt Solver
  • Microlearning
  • Free Alternatives
  • Kids Zone
  • Study Room
  • Calculators
  • Worksheets

Syllab.in — Free learning for Indian students, Class 1–12