Often I use "git log --graph --all --decorate --online" command.
It's verbose and tedious to write it with all the parameters. I know that i want these options always be applied to my git log cmd.
edit:i want only git to change its behavior - not writing some script outside of it, tweaking win shell or smth! I want to write "git log" and it does
"git log --graph --all --decorate --online" automatically
Like in vim, there is probably some default config file?
You can create aliases in ~/.gitconfig file.
Basically, add the following to your .gitconfig:
[alias]
llog = log --graph --all --decorate --online
Now when you call git llog, it will execute git log --graph --all --decorate --online
For furhter information read this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With