Skip to content

Instantly share code, notes, and snippets.

View crhistianramirez's full-sized avatar

Crhistian Ramirez crhistianramirez

  • Sitecore
  • Des Moines, IA, United States
  • 14:00 (UTC -05:00)
View GitHub Profile
@crhistianramirez
crhistianramirez / clean_branches_remote.sh
Created April 23, 2023 18:10
A bash function that enables you to mass delete REMOTE git branches
#!/bin/bash
# What is this?
# A bash function that enables you to mass delete REMOTE git branches
# When run, a prompt will appear showing the branches to delete and you can either
# choose to proceed or cancel
# Configuration
# You can provide a list of branches to always exclude as well as a list of branches
# to exclude at time of invocation (comma separated string). It is recommended to configure
@crhistianramirez
crhistianramirez / clean_branches_local.sh
Created April 23, 2023 18:09
A bash function that enables you to mass delete LOCAL git branches
#!/bin/bash
# What is this?
# A bash function that enables you to mass delete LOCAL git branches
# When run, a prompt will appear showing the branches to delete and you can either
# choose to proceed or cancel
# Configuration
# You can provide a list of branches to always exclude as well as a list of branches
# to exclude at time of invocation (comma separated string). It is recommended to configure