Saurabh Gupta’s Post

View profile for Saurabh Gupta

Engineering@Salesforce | ex-Amazon

Make Your Git Logs Beautiful & Readable! Let’s be honest—reading git log can feel like deciphering an arduous riddle. Here’s a simple yet powerful command that visualizes your Git log in a clean, structured format: git log --oneline --graph --all --pretty=format:"%C(yellow)%h %C(blue)%ar %C(reset)%s %C(green)%an" 🔹 What does it do? ✅ Shows a concise commit history ✅ Displays branches and merges in a graph ✅ Highlights commit hash, time ago, message, and author Want this always handy? [I bet you do] Add this alias to your ~/.zshrc file: Open .zshrc [will open this file in notepad] then add below command alias logs='git log --oneline --graph --all --pretty=format:"%C(yellow)%h %C(blue)%ar %C(reset)%s %C(green)%an"' Now, just type logs in your terminal to get a clean, structured Git log every time! 🎯 Try it out & let me know—does this make your life easier? 🚀 #Git #SoftwareEngineering #DevTips #Productivity

Ashutosh Verma

QAE - II @ Amazon | QAM @ Times Internet | TA @ TCS

2mo

I remember you taught me this way back in 2021, and I've been using it ever since! I've created a few more aliases since then, though. 😉 #Memories #Technique #Learning #Growth #Aliases

To view or add a comment, sign in

Explore topics