Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

delete mulitple git branch

// 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 :: discard unstaged changes git 
Shell :: bz2 unzip 
Shell :: install snap macos 
Shell :: count occurrences of word in unix bash 
Shell :: how to kill port in windows 
Shell :: debian bullseye sources.list security 
Shell :: chmod 777 recursive all files 
Shell :: install nvm via npm 
Shell :: grep exclude directory 
Shell :: bash exit code status last command 
Shell :: djanog shell change password 
Shell :: npm install react-final-form 
Shell :: view git settings 
Shell :: crontab execute shell script 
Shell :: export commit history github 
Shell :: see default gateway linux 
Shell :: .sh file example 
Shell :: Viewing content in files with dashed filenames 
Shell :: install node js from ubuntu 
Shell :: install pylatex with dependency 
Shell :: ls line by line terminal 
Shell :: remove dbeaver ubuntu 7.1.5 
Shell :: install android repo 
Shell :: elevated privileges windows 10 
Shell :: matrix effect 
Shell :: how to uncommit last commit in git 
Shell :: bash temporary file 
Shell :: Bash file permission 
Shell :: venv deactivate 
Shell :: add local project to bitbucket 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =