summaryrefslogtreecommitdiff
path: root/home/.gitconfig
diff options
context:
space:
mode:
authorBotond Hende <nettingman@gmail.com>2024-04-14 06:38:49 +0200
committerBotond Hende <nettingman@gmail.com>2024-04-14 06:38:49 +0200
commit0221492f62bcc1b766c2a4d5dbe26f6ff2ed8bc2 (patch)
treef91b7ada571a4dab7ae99c8f3ee252616baff2db /home/.gitconfig
squashed init
Diffstat (limited to 'home/.gitconfig')
-rw-r--r--home/.gitconfig20
1 files changed, 20 insertions, 0 deletions
diff --git a/home/.gitconfig b/home/.gitconfig
new file mode 100644
index 0000000..21b66c7
--- /dev/null
+++ b/home/.gitconfig
@@ -0,0 +1,20 @@
+[user]
+ email = nettingman@gmail.com
+ name = Botond Hende
+[init]
+ defaultBranch = master
+[core]
+ editor = nvim
+[alias]
+ com = commit
+ a = add -Av
+ st = status
+ diffc = diff --cached
+ squash-all = "!f(){ git reset $(git commit-tree HEAD^{tree} -m \"${1:-A new start}\");};f"
+[push]
+ autoSetupRemote = true
+[filter "lfs"]
+ clean = git-lfs clean -- %f
+ smudge = git-lfs smudge -- %f
+ process = git-lfs filter-process
+ required = true