Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git delete multiple branch local

// git remove multiple branch
// here pattern refers to few characters of branch name that is common between multiple branches

// delete branch locally
git branch | grep "pattern" | xargs git branch -d

// delete local branch that is unmerged
git branch | grep "pattern" | xargs git branch -D
Comment

PREVIOUS NEXT
Code Example
Shell :: bash write file 
Shell :: remove last commit git 
Shell :: make git forget a file 
Shell :: cache your login credentials in git command 
Shell :: git delete branch 
Shell :: pip install googlemaps 
Shell :: aws cli ec2 list security groups 
Shell :: uninstall cv2 in pi 
Shell :: launch powershell code runner 
Shell :: github setup 
Shell :: linux search inside files 
Shell :: flutter doctor - CocoaPods installed but not working 
Shell :: update every python library 
Shell :: code ENOLOCALnpm ERR! Could not install from "android" 
Shell :: grep filetype 
Shell :: oh my zsh apple m1 
Shell :: git stash show 
Shell :: gitignore global example 
Shell :: windows show proxy settings 
Shell :: open folder in gui from terminal linux 
Shell :: install nodejs on ubuntu 
Shell :: bash count character in variable 
Shell :: docker active log 
Shell :: Get pid of process that created a specific window 
Shell :: Please commit your changes or stash them before you merge 
Shell :: uncommit last commit in local 
Shell :: linux linebreaks script bash 
Shell :: alpine linux install redis-cli 
Shell :: how to concat pdf linux 
Shell :: how to extract a zip file in linux terminal 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =