Skip to content

Instantly share code, notes, and snippets.

@jerlendds
Created October 15, 2025 19:44
Show Gist options
  • Save jerlendds/90c15178e015942f716f5fbf1fe432fe to your computer and use it in GitHub Desktop.
Save jerlendds/90c15178e015942f716f5fbf1fe432fe to your computer and use it in GitHub Desktop.
~/.gitconfig
$ cat ~/.gitconfig
[user]
name = jerlendds
email = email
signingkey = /home/jerlendds/.ssh/id_github
[init]
defaultBranch = main
[alias]
pushall = !git remote | xargs -L1 -I R git push R
lg3 = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
lg1 = log --graph --abbrev-commit --decorate --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(auto)%d%C(reset)' --all
lg2 = 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(auto)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)'
lg = lg1
log1 = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
stashgrep = "!f() { for i in `git stash list --format=\"%gd\"` ; do git stash show -p $i | grep -H --label=\"$i\" \"$@\" ; done ; }; f"
[gpg]
format = ssh
[commit]
gpgsign = true
[color]
ui = auto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment