Skip to content

Instantly share code, notes, and snippets.

@j4ckofalltrades
Last active October 16, 2025 10:43
Show Gist options
  • Select an option

  • Save j4ckofalltrades/2f759ceab158a8139319ceeedd4aa73d to your computer and use it in GitHub Desktop.

Select an option

Save j4ckofalltrades/2f759ceab158a8139319ceeedd4aa73d to your computer and use it in GitHub Desktop.
git config options in the `git config --make-git-work-for-you` talk -- https://talks.jduabe.dev/git-config
# git config options in the `git config --make-git-work-for-you` talk
# https://talks.jduabe.dev/git-config
[alias]
br = branch
cm = commit
di = diff
dis = diff --staged
lol = log --oneline
rs = restore
rss = restore --staged
st = status
sh = stash
sw = switch
[branch]
sort = -committerdate
[commit]
gpgSign = true
verbose = true
[core]
editor = vim
excludesFile = /home/user/.gitignore.global
[diff]
algorithm = histogram
colorMoved = default
mnemonicPrefix = true
renames = true
[fetch]
prune = true
pruneTags = true
[help]
autoCorrect = prompt
[pull]
rebase = true
[push]
default = simple
autoSetupRemote = true
followTags = true
[rebase]
autoSquash = true
autoStash = true
updateRefs = true
[rerere]
autoUpdate = true
enabled = true
[tag]
gpgSign = true
sort = version:refname
[user]
name = John Doe
email = john@example.com
signingKey = ABC123XYZ456
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment