Skip to content

Instantly share code, notes, and snippets.

@TechWithTy
Last active February 19, 2025 00:28
Show Gist options
  • Save TechWithTy/2ec3b1e2ac7a34bff41fbbdc96d104a0 to your computer and use it in GitHub Desktop.
Save TechWithTy/2ec3b1e2ac7a34bff41fbbdc96d104a0 to your computer and use it in GitHub Desktop.

🚨 STOP using git log the old way! 🚨

If you're constantly drowning in a flood of commit hashes, author names, dates, and long messages—you're doing it wrong. I used to type git log like a caveman, getting lost in a sea of unnecessary info. Then I found a BETTER way.

🔥 Meet glp—my custom alias that makes viewing recent commits insanely easier. Here’s why you need it:

Compact & Clean – No more overwhelming walls of text.
Color-coded for Clarity – Instantly spot commit hashes, authors, and times.
Relative Time Awareness – See commits as "5 minutes ago" instead of a full timestamp.

🔧 How to set it up:
Add this to your .bashrc or .zshrc file:

alias glp="git log --pretty=format:'%C(yellow)%h%Creset - %C(green)%an%Creset - %C(cyan)%ar%Creset - %s'"

Now, instead of typing git log, just type glp and BOOM—your commit history is cleaner and faster to read.

Trust me, when you're checking commits 5-10 times a day, this little hack saves you HOURS in the long run.

👀 Give it a try and let me know what you think. If you want more efficiency hacks like this, drop a 🔥 in the comments! 🚀 #GitTips #ProductivityHacks #DevLife

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment