diff --git a/.gitconfig b/.gitconfig index 9d7c803..e6b3b3c 100755 --- a/.gitconfig +++ b/.gitconfig @@ -1,17 +1,20 @@ [filter "lfs"] - clean = git-lfs clean -- %f - smudge = git-lfs smudge -- %f - process = git-lfs filter-process - required = true + clean = git-lfs clean -- %f + smudge = git-lfs smudge -- %f + process = git-lfs filter-process + required = true [core] - editor = micro + editor = micro [init] - defaultBranch = main + defaultBranch = main [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] - autoSetupRemote = true + autoSetupRemote = true [pull] - ff = only + ff = only [include] path = .gitconfig.local