Skip to content

Instantly share code, notes, and snippets.

@jerlendds
Last active June 26, 2025 23:29
Show Gist options
  • Select an option

  • Save jerlendds/0869e28cff8cf89245385dd0ad8e04e4 to your computer and use it in GitHub Desktop.

Select an option

Save jerlendds/0869e28cff8cf89245385dd0ad8e04e4 to your computer and use it in GitHub Desktop.
.gitconfig
[user]
name = jerlendds
email = anonymous@nice.try
signingkey = /home/jerlendds/.ssh/id_github
[init]
defaultBranch = main
[alias]
pushall = !git remote | xargs -L1 -I R git push R 2> /dev/null
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
[gpg]
format = ssh
[commit]
gpgsign = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment