My git colours and one-letter aliases, as an includable config file. Bold colours for branches and status, and short aliases for the commands I
type all day. git lg is the fun one: a compact commit graph with relative dates
and authors.
use it
Clone the repo, then add this to your ~/.gitconfig:
[include]
path = les-essais/dotfiles/.gitconf.custom the config
[color "branch"]
current = yellow bold
local = green bold
remote = cyan bold
[color "status"]
added = green bold
changed = yellow bold
untracked = red bold
[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
pf = push --force-with-lease
st = status
p = push
c = commit
f = fetch
d = diff