Git Logg is a alias that enhances the
git log
experience, providing a more structured and easily navigable view of your commit history.
git log --graph --all --decorate --oneline
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.
git clone https://github.com/peplxx/git-logg
cd git-logg
./install.sh
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'