Skip to content

Commit

Permalink
feat(git-alias): force-cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
aboqasem committed Oct 12, 2024
1 parent 52f0d35 commit f6a5e6b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions synced/symlink/.gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
spush = push --recurse-submodules=on-demand
supdate = submodule update --remote --merge
sadd = !git add $(git config --file .gitmodules --get-regexp path | awk '{ print $2 }')
force-cleanup = "!git fetch -p && for branch in $(git for-each-ref --format '%(refname) %(upstream:track)' refs/heads | awk '$2 == \"[gone]\" {sub(\"refs/heads/\", \"\", $1); print $1}'); do git branch -D $branch; done && git pull --tags"

[status]

Expand Down

0 comments on commit f6a5e6b

Please sign in to comment.