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

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"
}
},
"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"