Skip to content

Instantly share code, notes, and snippets.

@shikaan
Created February 6, 2026 16:10
Show Gist options
  • Select an option

  • Save shikaan/86341bd60cff64262b9926ed54f7d24a to your computer and use it in GitHub Desktop.

Select an option

Save shikaan/86341bd60cff64262b9926ed54f7d24a to your computer and use it in GitHub Desktop.
.gitconfig
[column]
ui = auto
[branch]
sort = -committerdate
[tag]
sort = version:refname
[init]
defaultBranch = main
[diff]
algorithm = histogram
colorMoved = plain
mnemonicPrefix = true
renames = true
[push]
default = simple
autoSetupRemote = true
followTags = true
[fetch]
prune = true
pruneTags = true
all = true
[help]
autocorrect = prompt
[commit]
verbose = true
[rerere]
enabled = true
autoupdate = true
[core]
excludesfile = ~/.gitignore
editor = vim
[rebase]
autoSquash = true
autoStash = true
updateRefs = true

.gitconfig

This file contains a .gitconfig I am bringing from computer to computer.

Usage

Just append the content of .gitconfig to your local ~/.gitconfig.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment