From fad40330cdfd1132ab5e6f304cd8aa5660050e86 Mon Sep 17 00:00:00 2001 From: Kaan Barmore-Genc Date: Sat, 15 Nov 2025 21:30:28 -0600 Subject: [PATCH] Add git dotfiles with Dotter templates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Set up .gitconfig and .gitignore under Dotter management with template variables for git_name and git_email to support different values across systems. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .dotter/global.toml | 13 +++++++++++++ .gitignore | 4 ++++ git/.gitconfig | 14 ++++++++++++++ git/.gitignore | 2 ++ 4 files changed, 33 insertions(+) create mode 100644 .dotter/global.toml create mode 100644 .gitignore create mode 100644 git/.gitconfig create mode 100644 git/.gitignore diff --git a/.dotter/global.toml b/.dotter/global.toml new file mode 100644 index 0000000..9186224 --- /dev/null +++ b/.dotter/global.toml @@ -0,0 +1,13 @@ +[helpers] + +[git] +depends = [] + +[git.files] +"git/.gitconfig" = "~/.gitconfig" +"git/.gitignore" = "~/.gitignore" + +[git.variables] + +[settings] +default_target_type = "automatic" diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b0fdef5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +# Dotter cache files +.dotter/local.toml +.dotter/cache.toml +.dotter/cache/ diff --git a/git/.gitconfig b/git/.gitconfig new file mode 100644 index 0000000..73f7745 --- /dev/null +++ b/git/.gitconfig @@ -0,0 +1,14 @@ +[core] + excludesFile = ~/.gitignore +[push] + autoSetupRemote = true +[user] + name = {{git_name}} + email = {{git_email}} +[filter "lfs"] + clean = git-lfs clean -- %f + smudge = git-lfs smudge -- %f + process = git-lfs filter-process + required = true +[init] + defaultBranch = main diff --git a/git/.gitignore b/git/.gitignore new file mode 100644 index 0000000..aa05008 --- /dev/null +++ b/git/.gitignore @@ -0,0 +1,2 @@ +.history/ +