Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git delete merged branches

git branch --merged | egrep -v "(^*|master|dev)" | xargs git branch -d
Comment

delete local branches that have been merged

# delete all merged branches (excludes master main and anything containing dev)

git branch --merged | egrep -v "(^*|master|main|dev)" | xargs git branch -d
Comment

PREVIOUS NEXT
Code Example
Shell :: express-generator ejs 
Shell :: operator mono github 
Shell :: git clean 
Shell :: cronjob run every hour 
Shell :: instal yay arch linux 
Shell :: connect emulator to localhost 
Shell :: chmod: changing permissions of : Read-only file system and writeable 
Shell :: git fix Large files detected. 
Shell :: bash wait until file exists 
Shell :: search not working windows 11 
Shell :: github drupalcomposer project 
Shell :: reset iis 
Shell :: install lunar vim 
Shell :: ubuntu fingerprint error 
Shell :: ubuntu measure execution time 
Shell :: install spotify ubuntu 
Shell :: linux check if dir is mounted 
Shell :: install jq 
Shell :: how to push code to another remote git repository 
Shell :: yii get version 
Shell :: make git forget a file 
Shell :: update linux command 
Shell :: git ignore users permissions 
Shell :: linux sort by file size 
Shell :: git change remote branch name 
Shell :: choco install npm 
Shell :: assign home directory to user linux 
Shell :: golang hot reload 
Shell :: docker force remove container 
Shell :: git keeps changed file when switching to different branch 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =