feat: .gitconfig alias

This commit is contained in:
2026-06-23 11:57:08 +02:00
parent d73822bacb
commit 23aacf1900
+12 -9
View File
@@ -1,17 +1,20 @@
[filter "lfs"] [filter "lfs"]
clean = git-lfs clean -- %f clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f smudge = git-lfs smudge -- %f
process = git-lfs filter-process process = git-lfs filter-process
required = true required = true
[core] [core]
editor = micro editor = micro
[init] [init]
defaultBranch = main defaultBranch = main
[alias] [alias]
squash-all = "!f(){ git reset $(git commit-tree \"HEAD^{tree}\" \"$@\");};f" squash-all = "!f(){ git reset $(git commit-tree \"HEAD^{tree}\" \"$@\");};f"
prune-branches = "!f(){ git fetch --prune && for branch in `git branch -vv | grep ': gone]' | awk '{print $1}'`; do git branch -D $branch; done };f"
prune-tags = "!git fetch --prune origin '+refs/tags/*:refs/tags/*'"
log-graph = "!git log --all --decorate --graph --oneline"
[push] [push]
autoSetupRemote = true autoSetupRemote = true
[pull] [pull]
ff = only ff = only
[include] [include]
path = .gitconfig.local path = .gitconfig.local