feat: git

This commit is contained in:
Tomas Mirchev 2025-10-20 19:44:24 +02:00
parent 0d394dd577
commit c8a4741d94
3 changed files with 46 additions and 7 deletions

View File

@ -1,10 +1,19 @@
[init]
defaultBranch = main
[user] [user]
name = Tomas Mirchev name = Tomas Mirchev
email = contact@tomastm.com email = contact@tomastm.com
[pull]
rebase = true
[core] [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

21
config/shared/gitignore Normal file
View File

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

View File

@ -18,6 +18,12 @@
"to": "~/.gitconfig" "to": "~/.gitconfig"
} }
}, },
"gitignore": {
"link": {
"from": "shared/gitignore",
"to": "~/.gitignore"
}
},
"zsh": { "zsh": {
"link": { "link": {
"from": "shared/zsh", "from": "shared/zsh",
@ -49,6 +55,7 @@
], ],
"macos": [ "macos": [
"git", "git",
"gitignore",
"zsh", "zsh",
"tmux", "tmux",
"nvim", "nvim",
@ -102,6 +109,7 @@
], ],
"linux-vm": [ "linux-vm": [
"bin", "bin",
"gitignore",
{ {
"package": "htop", "package": "htop",
"install": "sudo apt install -y htop" "install": "sudo apt install -y htop"
@ -126,6 +134,7 @@
], ],
"container": [ "container": [
"bin", "bin",
"gitignore",
{ {
"package": "htop", "package": "htop",
"install": "sudo apt install -y htop" "install": "sudo apt install -y htop"