git gone
Some checks failed
Check Nix flake / Perform Nix flake checks (ubuntu-latest) (pull_request) Successful in 6m2s
Check flake.lock / Check health of `flake.lock` (push) Waiting to run
Check Nix formatting / Perform Nix format checks (push) Waiting to run
Check Nix flake / Perform Nix flake checks (ubuntu-latest) (push) Has been cancelled
Some checks failed
Check Nix flake / Perform Nix flake checks (ubuntu-latest) (pull_request) Successful in 6m2s
Check flake.lock / Check health of `flake.lock` (push) Waiting to run
Check Nix formatting / Perform Nix format checks (push) Waiting to run
Check Nix flake / Perform Nix flake checks (ubuntu-latest) (push) Has been cancelled
This commit is contained in:
parent
019263513d
commit
0246c3030c
@ -11,15 +11,15 @@
|
||||
userName = "ahuston-0";
|
||||
aliases = {
|
||||
gone = ''
|
||||
!git fetch -p && git for-each-ref --format '%(refname:short) %(upstream:track)' | # dump all branches
|
||||
awk '$2 == "[gone]" {print $1}' | # get nuked branches
|
||||
sed 's/\\x27/\\x5C\\x27/' | # remove single quotes, for xargs reasons
|
||||
xargs -r git branch -D; # nuke the branches
|
||||
# git for-each-ref --format '%(refname:short) %(upstream)' | # dump all older branches
|
||||
# awk 'NF < 2 {print $1}' | # get nuked branches
|
||||
# grep -Pv "(^origin/|^origin$|stash)" | # filter out remotes & stash
|
||||
# !git fetch -p && git for-each-ref --format '%(refname:short) %(upstream:track)' | # dump all branches
|
||||
# awk '$2 == "[gone]" {print $1}' | # get nuked branches
|
||||
# sed 's/\\x27/\\x5C\\x27/' | # remove single quotes, for xargs reasons
|
||||
# xargs -r git branch -D # nuke the branches
|
||||
# xargs -r git branch -D; # nuke the branches #
|
||||
!git for-each-ref --format '%(refname:short) %(upstream)' | # dump all older branches
|
||||
awk 'NF < 2 {print $1}' | # get nuked branches
|
||||
grep -Pv "(^origin/|^origin$|stash)" | # filter out remotes & stash
|
||||
sed 's/\\x27/\\x5C\\x27/' | # remove single quotes, for xargs reasons
|
||||
xargs -r git branch -D # nuke the branches
|
||||
'';
|
||||
};
|
||||
extraConfig = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user