DEV Community

Discussion on: Git [Script] Aliases That Could Be Helpful

Collapse
 
sebastientorres profile image
sebastientorres

I like the gs and gd alias, as I would use those a lot.

One I copied from a colleague:
lg=log --graph --all --date=local --format=format:'%C(cyan)%h%C(reset) - %C(red)%d%C(reset) - %C(white)(%ai)%C(reset) %C(white dim)%s%C(reset) %C(white) -- %an%C(reset)' --abbrev-commit --color

One that I expanded the above to:
lge=log --graph --all --date=local --name-status --format=format:'%C(cyan)%h%C(reset) - %C(red)%d%C(reset) - %C(white)(%ai)%C(reset) %C(white dim)%s%C(reset) %C(white) -- %an%C(reset)' --abbrev-commit --color

Collapse
 
sarathsantoshdamaraju profile image
Krishna Damaraju

Great, I remember following pretty graphs for git and saw similar on Stack Overflow but never got a chance to try it. Will check it now.

Collapse
 
sebastientorres profile image
sebastientorres

:-) Glad to suggest and contribute.

Thread Thread
 
sarathsantoshdamaraju profile image
Krishna Damaraju • Edited

Sure, If you want, you can raise a PR in repo with your own aliases.