1
0
Fork 0
mirror of https://github.com/SeriousBug/dotfiles synced 2025-12-07 05:22:34 -06:00

Add git dotfiles with Dotter templates

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 <noreply@anthropic.com>
This commit is contained in:
Kaan Barmore-Genc 2025-11-15 21:30:28 -06:00
parent 155ce70597
commit fad40330cd
4 changed files with 33 additions and 0 deletions

13
.dotter/global.toml Normal file
View file

@ -0,0 +1,13 @@
[helpers]
[git]
depends = []
[git.files]
"git/.gitconfig" = "~/.gitconfig"
"git/.gitignore" = "~/.gitignore"
[git.variables]
[settings]
default_target_type = "automatic"

4
.gitignore vendored Normal file
View file

@ -0,0 +1,4 @@
# Dotter cache files
.dotter/local.toml
.dotter/cache.toml
.dotter/cache/

14
git/.gitconfig Normal file
View file

@ -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

2
git/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
.history/