feat: .gitconfig alias
This commit is contained in:
@@ -9,6 +9,9 @@
|
|||||||
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]
|
||||||
|
|||||||
Reference in New Issue
Block a user