These set the Git defaults.
My local Git configuration
this .gitignore
is located in my home directory.
.gitignore
*.patch
*.diff
.DS_Store
.vscode
vendor/
!core/assets/vendor
node_modules/
sites/default/
modules/contrib/
.idea/
sites/simpletest/
sites/example.com/
This .gitconfig is located within my home directory.
.gitconfig
[user]
name = Mike Herchel
email = mike@herchel.com
[core]
fileMode = false
excludesfile = /Users/mherchel/.gitignore
[help]
autocorrect = 1
[alias]
sadd = !sh -c 'cd -- ${GIT_PREFIX:-.} && git add -- "$@" && git status' --
addst = "!f() { git add $@; git status; }; f"
[http]
postBuffer = 157286400