Skip to content

Instantly share code, notes, and snippets.

@apaatsio
Created March 3, 2022 11:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apaatsio/c4a90dd09f8b2171c95fb59a0dc53408 to your computer and use it in GitHub Desktop.
Save apaatsio/c4a90dd09f8b2171c95fb59a0dc53408 to your computer and use it in GitHub Desktop.
Useful defaults for global git config
#!/bin/sh
# git config --global user.name "Firstname Lastname"
# git config --global user.email "firstname.lastname@example.com"
git config --global user.useconfigonly true
git config --global pull.ff only
git config --global push.default simple
git config --global rerere.enabled true
git config --global rerere.autoupdate true
git config --global diff.algorithm histogram
git config --global merge.conflictstyle zdiff3
git config --global core.editor vim
git config --global help.autocorrect 30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment