1

I want a prettier look git log.
I'm current using git log --branches --remotes --tags --graph --decorate --oneline, which is already pretty good.

But it doesn't show the commiter names and date, what I want to do is do some further customization based on the above built-in options.

Is it possible?

Aaron Shen
  • 8,124
  • 10
  • 44
  • 86

1 Answers1

0

first of you I suggest to use --all instead of --branches --remotes --tags to make your command line more compact. Also, instead of having a very long commandline you can add your alias in the .gitconfig file.

I use the following two aliasesL

[alias]
    superlog = log --graph --all --decorate --pretty=oneline
    superlogextended = log --graph --all --decorate

superlogextended looks like what you are asking for. After you add the alias in ~/.gitconfig just use it like this:

git superlog
git superlogextended
Saverio Proto
  • 1,085
  • 9
  • 20
  • 1
    For what it's worth, `--all` is (subtly?) different from `--branches --remotes --tags`: the former means *all references* while the latter three, used together, mean *all branches, remote-tracking branches, and tags*. The difference is that *all references* adds `refs/notes/*` and `refs/stash` if they exist, plus anything else living in `refs/` if any such things exist. (That aside, I use `--all` myself.) – torek Nov 15 '16 at 12:35