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 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 :: cli50 installation 
Shell :: cs50 cli50 install 
Shell :: installing android studio on kali linux 
Shell :: how to make apache not run automatically linux 
Shell :: linux which sudo 
Shell :: install apk as system app with adb 
Shell :: check on cmd all installed version 
Shell :: how to clear terminal in linux 
Shell :: how to move files that begine with uppercase in linux 
Shell :: git rename working branch 
Shell :: how to open ubuntu file in visual studio 
Shell :: how to assign more than one ip address in linux 
Shell :: run command every hour linux 
Shell :: linux print pdf from console 
Shell :: photoview github 
Shell :: how can I check memory usage in linux? 
Shell :: bash cd root permission denied 
Shell :: how to install raspap 
Shell :: merge two branches in git command 
Shell :: how to delete remote file locally on git 
Shell :: create self signed certificate 
Shell :: configure a subdomain apache windows 
Shell :: image crop and center linux 
Shell :: scp from server to my computer 
Shell :: terminal open vim 
Shell :: shell script syntax error unexpected end of file 
Shell :: append newline to file 
Shell :: save terminal output to file with script 
Shell :: example bash script 
Shell :: npm delete 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =