3 ms·
Git is pretty difficult to learn, but the customizations it allows are amazing. To get a "fancy oneline log" output, add the following to your `~/.gitconfig`
by ivan_ah 10y ago
Git is pretty difficult to learn, but the customizations it allows are amazing.
To get a "fancy oneline log" output, add the following to your `~/.gitconfig`
[alias]
ll = log --graph --oneline --decorate --date=short --all --pretty=format:'%ad %h %Cgreen%an %Cred%d %Creset%s'
then run
git ll
It's great when rebasing your way out of spaghetti-commitlog situations.
- deleted 10y ago[deleted]
- auscompgeek 10y agoI believe --oneline and --decorate (and possibly --date=short as well) are redundant when specified with --pretty=format. I personally have this in my ~/.config/git/config: [alias] lg = log --graph --pretty=format:'%C(auto)%h%d %s %Cgreen(%ar) %C(bold blue)<%an>%Creset'