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 :: advanced installer product key 
Shell :: delphes install 
Shell :: get first 10 processes linux 
Shell :: delete iptable rule linux 
Shell :: how to uninstall cpuonly from pytorch 
Shell :: bashrc check if interactive 
Shell :: how to finish feature branch without deleting 
Shell :: nextcloud config.php location docker 
Shell :: linux remove lines from file 
Shell :: p4merge git config 
Shell :: bash tab autocomplete to stdout 
Shell :: git init git remote add origin git pull 
Shell :: rosetta terminal icon 
Shell :: npm warn ws butterfly install peer dependencies 
Shell :: git submodule update init no url found 
Shell :: nano edit a file 
Shell :: kubernetes add or remove label from existing resource 
Shell :: task manager opera browser 
Shell :: install apache di linux 
Shell :: ubuntu bash open folder in finder 
Shell :: regex first in line 
Shell :: docker ps grep container id 
Shell :: linux echo variable 
Shell :: ubuntu add user to dailout 
Shell :: turn off wiregurad 
Shell :: llaravel sanctum 
Shell :: delete history linux range 
Shell :: how to search on vim 
Shell :: apache2 default url 
Shell :: shell list all files in directory 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =