Skip to content

Git Settings

September 29, 2023
December 17, 2014

git - Can I specify multiple users for myself in .gitconfig? - Stack Overflow

Minimal config

# minimal git config
git config --global pull.rebase true
git config --global rebase.autosquash true
git config --global rebase.autostash true
git config --global log.decorate true
git config --global help.autocorrect 5
git config --global core.autocrlf true # on Windows machine
git config --global core.autocrlf input # otherwise

Backup

.gitignore
.ssh/config
.ssh/git.id_rsa{,.pub}

Reference

Git - Git Configuration
git-config man page - git-core-doc - General Commands