From c8a4741d94232e7a4e1f44b52c2b76c03396016e Mon Sep 17 00:00:00 2001 From: Tomas Mirchev Date: Mon, 20 Oct 2025 19:44:24 +0200 Subject: [PATCH] feat: git --- config/shared/git | 23 ++++++++++++++++------- config/shared/gitignore | 21 +++++++++++++++++++++ manifest.json | 9 +++++++++ 3 files changed, 46 insertions(+), 7 deletions(-) create mode 100644 config/shared/gitignore diff --git a/config/shared/git b/config/shared/git index a4397e0..b3527ed 100644 --- a/config/shared/git +++ b/config/shared/git @@ -1,10 +1,19 @@ -[init] - defaultBranch = main [user] - name = Tomas Mirchev - email = contact@tomastm.com -[pull] - rebase = true + name = Tomas Mirchev + email = contact@tomastm.com [core] - editor = nvim + editor = nvim + excludesfile = ~/.gitignore +[init] + defaultBranch = main +[pull] + rebase = true +[push] + default = current + autoSetupRemote = true +[remote] + pushDefault = origin +[alias] + amend = commit -a --amend --no-edit + rename = branch -m diff --git a/config/shared/gitignore b/config/shared/gitignore new file mode 100644 index 0000000..ffe8af7 --- /dev/null +++ b/config/shared/gitignore @@ -0,0 +1,21 @@ +.DS_Store +*.swp +*.swo +node_modules/ +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +.env +.env.* +build/ +dist/ +build/ +tmp/ +temp/ +logs/ +*.log +.cache/ +coverage/ +.devflow/ +.dev-flow/ diff --git a/manifest.json b/manifest.json index e0a9e2e..e597676 100644 --- a/manifest.json +++ b/manifest.json @@ -18,6 +18,12 @@ "to": "~/.gitconfig" } }, + "gitignore": { + "link": { + "from": "shared/gitignore", + "to": "~/.gitignore" + } + }, "zsh": { "link": { "from": "shared/zsh", @@ -49,6 +55,7 @@ ], "macos": [ "git", + "gitignore", "zsh", "tmux", "nvim", @@ -102,6 +109,7 @@ ], "linux-vm": [ "bin", + "gitignore", { "package": "htop", "install": "sudo apt install -y htop" @@ -126,6 +134,7 @@ ], "container": [ "bin", + "gitignore", { "package": "htop", "install": "sudo apt install -y htop"