My local Git configuration

By mherchel, 18 June, 2022

These set the Git defaults.

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