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 :: how to close port 3000 running 
Shell :: install cmake ubuntu 
Shell :: install google chrome linux 
Shell :: sdkmanager install build tools 
Shell :: check ububtu version 
Shell :: how to check ssd health linux manjaro 
Shell :: flush dns linux 
Shell :: check active number of ssh connections 
Shell :: remove nginx 
Shell :: uninstall opera ubuntu 
Shell :: how to install pip in ubuntu 
Shell :: install postman ubuntu 
Shell :: ram usage in linux 
Shell :: adonis install 
Shell :: install qwebengineview pyqt5 
Shell :: remove index.lock git 
Shell :: change folder permisson in mac 
Shell :: powershell read json file 
Shell :: how to install git on linux 
Shell :: how to pull submodules git 
Shell :: install dropbox ubuntu 
Shell :: pip upgrade stramlit 
Shell :: update kali 
Shell :: how to delete all docker images 
Shell :: nodemon install 
Shell :: windows powershell symlink 
Shell :: npm i mui 
Shell :: docker clear cache 
Shell :: docker pull image and rename it 
Shell :: ufw delete rule 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =