From f71b17e5ff7a3a1100303fa20b15d7363a162fe0 Mon Sep 17 00:00:00 2001 From: "Andrew R. M" Date: Fri, 4 Apr 2025 17:43:06 +0000 Subject: [PATCH] Add gitconfig in xdg location Recommendations came from this blog post: https://blog.gitbutler.com/how-git-core-devs-configure-git/ Let's see how this works out lol Test --- apply-dotfiles | 2 ++ git/.config/git/config | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 git/.config/git/config diff --git a/apply-dotfiles b/apply-dotfiles index c633af1..f900656 100755 --- a/apply-dotfiles +++ b/apply-dotfiles @@ -17,6 +17,8 @@ apply_dotfile sh apply_dotfile readline apply_dotfile screen +apply_dotfile git + apply_dotfile vim apply_dotfile ruby diff --git a/git/.config/git/config b/git/.config/git/config new file mode 100644 index 0000000..6c330e6 --- /dev/null +++ b/git/.config/git/config @@ -0,0 +1,25 @@ +[branch] + sort = -committerdate +[column] + ui = auto +[tag] + sort = version:refname +[init] + defaultBranch = main +[diff] + algorithm = histogram + colorMoved = plain + mnemonicPrefix = true + renames = true +[push] + default = simple + autoSetupRemote = true + followTags = true +[fetch] + prune = true + pruneTags = true + all = true +[commit] + verbose = true +[core] + excludefiles = ~/.config/git/ignore