From 2ea5230362d0a00b4c0fdceefbfdc0a5a78f9dd6 Mon Sep 17 00:00:00 2001 From: Proctor Date: Mon, 3 Oct 2022 13:51:11 -0500 Subject: [PATCH] Global GitConfig with local if present --- git/.gitconfig | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 git/.gitconfig diff --git a/git/.gitconfig b/git/.gitconfig new file mode 100644 index 0000000..a474eb3 --- /dev/null +++ b/git/.gitconfig @@ -0,0 +1,23 @@ +# This is Git's per-user configuration file. +[user] + email = steven.proctor@gmail.com + name = Proctor + +[core] + editor = nvim + excludesFile = ~/.gitignore.global +[init] + defaultBranch = main + +[alias] ; Command aliases for the git[1] command wrapper + last = cat-file commit HEAD +[branch] + autoSetupRebase = always +[rerere] + enabled = true +[remote] + pushDefault = origin + +;; This is last, take in any other local file overrides +[include] + path = ~/.gitconfig.local ; find ".gitconfig.local" in your `$HOME` directory