Tutorials Microservices with .NET
Git Logs and History — Complete Guide
Git Logs and History — Complete Guide: free step-by-step lesson with examples, common mistakes, and interview tips — part of Microservices with .NET on Toolliyo Academy.
On this page
Microservices with .NET · Lesson 96 of 131
Git Logs and History
Beginner ✓ → Intermediate ✓ → Advanced ✓ → Professional
Professional · 4 — Real projects · ~10 min · Module 10: Git and GitHub
What is this?
git log shows commit history — author, date, message. git blame shows who last changed each line.
Why should you care?
Production incident response starts with “which commit introduced this bug?”
See it live — copy this example
Create a Web API project (dotnet new webapi), paste the code, then run dotnet run.
git log --oneline --graph --all -20
git blame src/Order.Api/Program.cs
git show abc1234
Run Example »
This lesson uses terminal or setup steps. Run commands on your computer — the live editor appears on coding lessons.
What happened?
- git bisect binary-searches history to find breaking commit.
- Tags mark releases (v1.0.0).
Try it yourself
- Run git log --oneline -10 on your repo.
- Use git blame on one file.
- Tag current main as v0.1.0: git tag v0.1.0
- Change a string or route in the example and save — watch Swagger or the RabbitMQ Management UI update.
- Break the code on purpose (remove a semicolon), read the error message, then fix it.
Remember
log = audit trail. blame = line ownership. tag releases for deploy rollback.