Page MenuHomeDevCentral

git-delete-remote-branch
No OneTemporary

git-delete-remote-branch

#!/bin/sh
# -------------------------------------------------------------
# Git remote branch deletion
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: Trivial work, not eligible to copyright
# Source file: roles/devserver/userland-home/files/dereckson/bin/git-delete-remote-branch
# Usage: git delete-remote-branch [remote] [branch]
# Default values: origin master
# -------------------------------------------------------------
#
# <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 -e
if [ "$#" -gt 1 ]; then
remote=$1
shift
else
remote=origin
fi
if [ "$#" -gt 0 ]; then
branch=$1
shift
else
branch=master
fi
git push $remote --delete $branch

File Metadata

Mime Type
text/x-shellscript
Expires
Sat, Nov 14, 19:33 (3 d, 9 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4214477
Default Alt Text
git-delete-remote-branch (965 B)

Event Timeline