Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git delete local branches not on remote

git fetch -p && for branch in $(git branch -vv | grep ': gone]' | awk '{print $1}'); do git branch -D $branch; done
Comment

delete local branches not on remote

git branch -vv | grep ': gone]'|  grep -v "*" | awk '{ print $1; }' | xargs -r git branch -D
Comment

git delete remote branches in local git

# Fetch changes from all remotes and locally delete 
# remote deleted branches/tags etc
# --prune will do the job :-;
git fetch --all --prune
Comment

git delete branches not on remote

git branch --merged >/tmp/merged-branches && 
  vi /tmp/merged-branches && xargs git branch -d </tmp/merged-branches
Comment

PREVIOUS NEXT
Code Example
Shell :: git remote show origin 
Shell :: tmux terminate session 
Shell :: linux open current directory in gui 
Shell :: conda create enviroment from file 
Shell :: install git ubuntu 
Shell :: how to install soapui on ubuntu 
Shell :: updating git 
Shell :: git rebase fork 
Shell :: npm install @ngx-translate/http-loader 
Shell :: To install mailutils to send mail from linux centos terminal 
Shell :: ssh tunel map background 
Shell :: how to install gnome user theme extension terminal 
Shell :: mac command not found: sshpass 
Shell :: bash echo can create file 
Shell :: random 6 digit number c# 
Shell :: how to download a repository as zip 
Shell :: pod install mac m1 
Shell :: certbot enable nginx renew 
Shell :: cordova sqlite storage plugin android 11 
Shell :: windows check sum 
Shell :: push project to github 
Shell :: Error response from daemon: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io: device or resource busy 
Shell :: clear entrie git cache 
Shell :: react-native clean and rebuild 
Shell :: store git credentials ubuntu 
Shell :: install github linux 
Shell :: save firewall config linux 
Shell :: could not install packages due to an oserror 
Shell :: linux tail colorful 
Shell :: command to find Server’s Public IP Address 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =