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

Remove all your local git branches but keep master

git branch | grep -v “master” | 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 :: onlne compiler c linux 
Shell :: git untracked folder 
Shell :: ubuntu change user 
Shell :: how to run code from github 
Shell :: install node package manager 
Shell :: bash change case 
Shell :: Push First repository 
Shell :: ubuntu install docker 
Shell :: how do I push a repo that says allready exists 
Shell :: ubuntu 20.04 install nginx 
Shell :: laptop slow performance linux ubuntu 
Shell :: boot pendrive cmd 
Shell :: git undo unstaged changes to one file 
Shell :: shorten the linux terminal path 
Shell :: git add identity 
Shell :: read all test in golang 
Shell :: git bash mac 
Shell :: sudo rmdir recursive 
Shell :: installing node in ubuntu 
Shell :: cmd zip folder 
Shell :: add husky commitlint 
Shell :: concatenate in bash the output of two commands 
Shell :: how to navigate to a folder in cmd windows 10 
Shell :: bash variable execute 
Shell :: bash count occurrences of string in array 
Shell :: sleep in linux command 
Shell :: react day picker 
Shell :: download pdf arranger ubuntu 
Shell :: scan all udp ports nmap 
Shell :: bash get absolute path 
ADD CONTENT
Topic
Content
Source link
Name
5+3 =