We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c243d55 commit 7492fffCopy full SHA for 7492fff
1 file changed
rc/gitconfig
@@ -42,7 +42,11 @@
42
[alias]
43
acp = "!f() { git add . && git commit -m \"$*\" && git push; }; f"
44
branches = !git branch -vv
45
- cleanup = !"git fetch -p && git branch --merged origin/master | grep -vE '^\\*|master' | xargs -r git branch -d"
+ cleanup = "!f() { \
46
+ BASE=$(git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@'); \
47
+ git fetch -p && \
48
+ git branch --merged origin/$BASE | grep -vE \"^\\*|$BASE\" | xargs -r git branch -d; \
49
+ }; f"
50
deltag = !git tag -d $1 && git push origin :refs/tags/$1
51
jeff = !git diff --ignore-space-at-eol -b -w --ignore-blank-lines
52
lg = !git --no-pager log --reverse --pretty='%C(yellow)%h %C(bold blue)%<(15,trunc)%an%Creset %Cgreen%ad%Creset %s%C(auto)%d%Creset' --date=format:'%Y/%m/%d %H:%M' -n32
0 commit comments