Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

delete all local branches git

$ git branch | grep -v "master" | xargs git branch -D 
Comment

delete all local branches git

git branch --merged | grep -v * | xargs git branch -D 
Comment

delete all local branches except current branch

git branch | grep -v "master" | grep -v ^* | xargs git branch -D
Comment

git branch delete all local branches

// hard delete

git branch -D $(git branch)
Comment

how to delete all branches in git local

git branch | grep -v "main" | xargs git branch -D
Comment

remove all branch local git

git branch | grep -v "develop" | grep -v "master" | xargs git branch -D
Comment

git delete all local branches starting with

git branch --list 'o*' | xargs -r git branch -d
Comment

Deleting all the git local branches

git branch --all-branches --merged --delete --ignore="fix-this-bug,prefix-*"
Comment

git delete all local branches

git for-each-ref --format '%(refname:short)' refs/heads | grep -v master | xargs git branch -D
Comment

PREVIOUS NEXT
Code Example
Shell :: linus display ORACLE_HOME 
Shell :: [error] The installed version of the /Database Logging/ module is too old to update 
Shell :: wp cli tagline 
Shell :: git clone different ssh key 
Shell :: commit container to image 
Shell :: grep search 
Shell :: install spark 2.4.0 on ubuntu 
Shell :: apache not restart 
Shell :: install rust 
Shell :: git clone with long file names 
Shell :: test gatsby app on mobile 
Shell :: apt-get search package 
Shell :: how to setup .env file for docker 
Shell :: ubuntu install dbeaver 
Shell :: Brave on OpenSUSE 
Shell :: how to add this package include: package:flutter_lints/flutter.yaml 
Shell :: install scrapy 
Shell :: install neofetch on debian 
Shell :: mac install gensim 
Shell :: git config global credential cache 
Shell :: aws s3 cli count objects 
Shell :: growth ebs disc ec2 running 
Shell :: Installing Command line tools for Xcode via CLI 
Shell :: install redis on ubuntu 20.04 
Shell :: react ToastContainer 
Shell :: windows commandline zip 
Shell :: chsh pam authentication failure 
Shell :: linux remove single quotes from string 
Shell :: ls order by filename length 
Shell :: git revert a commit 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =