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 :: if there is a string in a file batch 
Shell :: user.signingkey git 
Shell :: nuxt new project npm 
Shell :: git push existing code to new repository 
Shell :: how to view current ssh git 
Shell :: install composer debian 
Shell :: unknown error after kill: runc did not terminate sucessfully: container_linux.go:392: signaling init process caused "permission denied" 
Shell :: To see details about a wifi connection on linux 
Shell :: powershell get arguments 
Shell :: Finding path to some ruby versions 
Shell :: undo most recent commit 
Shell :: bash split variable by delimiter 
Shell :: linux command to go to the previous directory 
Shell :: spotify combo chercker 
Shell :: check all running processes linux 
Shell :: crosh 
Shell :: sh script options 
Shell :: install sublime text on ubuntu 20.04 
Shell :: ignore file git 
Shell :: unix vs linux 
Shell :: get a loading spinner javascript react 
Shell :: how to start ngrok server 
Shell :: how to run code from github 
Shell :: how to install specific package version npm 
Shell :: vim remove all commented lines 
Shell :: batch write file 
Shell :: cmd refresh path 
Shell :: a new powershell stable release is available 
Shell :: create new file in terminal 
Shell :: get large files 
ADD CONTENT
Topic
Content
Source link
Name
7+6 =