Brian Schlining
1 min readOct 2, 2020

--

Good post on spreading the word about git aliases. They are super useful. I use a modification of `git status` that I find more compact and easier to read: `st = status --short --branch`

Here's two other alias I often use:

fh [Full History]:

`fh = log --graph --all --pretty=format:'%Cred%h%Creset - %C(yellow)%cd%Creset -%C(green)%d%Creset %s %C(bold blue)<%an>%Creset' --abbrev-commit --date=short`

alias [Show git aliases]:

`alias = ! git config --get-regexp ^alias\. | sed -e s/^alias\.// -e s/\ /\ =\ /`

--

--

Brian Schlining
Brian Schlining

Written by Brian Schlining

Polyglot coder. Deep-sea Researcher. Zazen aficionado. I think squids are pretty cool.

No responses yet