Skip to content

Git log alias with enhanced readability and formatting.

License

Notifications You must be signed in to change notification settings

peplxx/git-logg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Git Logg: Enhanced Git Log Alias

🌟 Overview

Git Logg

Git Logg is a alias that enhances the git log experience, providing a more structured and easily navigable view of your commit history.

📝 What is improved

Git Log Graph Oneline

git log --graph --all --decorate --oneline

Git Log Graph

git log --graph --all --decorate

  • Compact Display: Utilizing compact git log --oneline output with detailed commit history.
  • Enhanced Format: Improves readability by truncating email addresses, clearly displaying author names and dates, and adding timestamps.
  • Detailed Information: Displays timestamp, author, commit hash, and branch info.
  • Graph Representation: Utilizes --graph to enhance the readability of branching in the commit history.

🚀 How to install

[Linux] Installer

git clone https://github.com/peplxx/git-logg
cd git-logg
./install.sh

Manual installation

Alternatively, you can add the alias directly to your Git configuration (~/.gitconfig):

[alias]
  logg = log --all --color --date='format:%Y-%m-%d %H:%M:%S' --decorate=short --graph --pretty=format:'%C(bold dim white)%ad%C(reset) %C(bold dim cyan)%<(20,trunc)%an%C(reset) %C(bold cyan)%h%C(reset)%C(auto)%d%C(reset)%n%C(dim white)%<(19,trunc)%ar%C(reset) %C(dim cyan)%<(20,trunc)%ae%C(reset) %C(bold white)Commit:%C(reset) %C(white)%s%C(reset)%n'