Page MenuHomeDevCentral

git-clean-branches
No OneTemporary

git-clean-branches

#!/bin/sh
# -------------------------------------------------------------
# Git merged branch cleaner
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: Trivial work, not eligible to copyright
# Source file: roles/devserver/userland-home/files/dereckson/bin/git-clean-branches
# -------------------------------------------------------------
#
# <auto-generated>
# This file is managed by our rOPS SaltStack repository.
#
# Changes to this file may cause incorrect behavior
# and will be lost if the state is redeployed.
# </auto-generated>
set -eu
arc branches | grep -v main | grep -v master | grep Closed
arc --no-ansi branches | grep -v main | grep -v master | grep Closed | awk '{print $2}' | xargs git branch -D

File Metadata

Mime Type
text/x-shellscript
Expires
Sat, Nov 14, 19:33 (3 d, 12 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4219778
Default Alt Text
git-clean-branches (818 B)

Event Timeline