Skip to content

Instantly share code, notes, and snippets.

@Gusase
Last active November 23, 2025 13:42
Show Gist options
  • Select an option

  • Save Gusase/ac9ef07e94009a03996a759a8e8ff8ea to your computer and use it in GitHub Desktop.

Select an option

Save Gusase/ac9ef07e94009a03996a759a8e8ff8ea to your computer and use it in GitHub Desktop.
My ... (It has dead simple yet beautiful `git log` display options)
[user]
name = <YOUR_NAME>
email = <YOUR_EMAIL_ADDRESS>
signingkey = <YOUR_GPG_PUBLIC_KEY_ID>
[core]
editor = <PATH_TO_EDITOR> --wait
autocrlf = true
[color]
ui = true
[alias]
cl = clone
aa = add -A
cm = commit -m
cma = commit -am
co = checkout
sw = switch
pl = pull --rebase
ps = push
f = fetch
d = diff
smain = switch main
l = log --graph --decorate --all
sl = log --oneline
l1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
l2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
[credential]
helper = store
[gpg]
program = <PATH_TO_GPG_EXECUTABLE>
[commit]
gpgsign = true
[format]
signOff = yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment