Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

gitlab stale branches api script

for branch in `git branch -r | grep -v HEAD`; do 
    echo -e `git show --format="%cr %an" $branch | head -n 1` 	$branch; 
  done | 
  grep -e '.. months' -e '[8-9] months' | grep 'origin/' | 
  sed 's/.*origin///' | 
  xargs -n 1 echo git push origin --delete | bash
Comment

PREVIOUS NEXT
Code Example
Shell :: gubhit 
Shell :: docker toolbox proxy windows 7 
Shell :: Excluding files 
Shell :: grafana grouped bar chart plugin 
Shell :: create a docker-compose symbolic link to /usr/bin 
Shell :: complete command in zsh 
Shell :: Clone gigamono repository 
Shell :: centos 7 install grub 
Shell :: how to disable big sur apache 
Shell :: :flutter AndroidSdk/platform-tools/adb shell am start -n com.react2010/com.react2010.MainActivity 
Shell :: kali linux vdi 
Shell :: copy specific files only from directories 
Shell :: debian 10 gcc compile 
Shell :: clear github keychain passowrd from terminal 
Shell :: install vnm on ubuntu 
Shell :: centos 8 gui 2 
Shell :: ignoring time stamp from the future mac 
Shell :: serverless invoke sqs 
Shell :: how to install node modules python 
Shell :: disable monitor on boot linux 
Shell :: where is the jenkins_home variable in bunutu 
Shell :: batch start file with default program but wait 
Shell :: install vert manager linux 
Shell :: Git add only new files,not modefied files 
Shell :: powershell tab (bash style) 
Shell :: slow scaninng 
Shell :: snaps folder has multiple copy of same app ubuntu 
Shell :: how to open fileexplorer from terminal in ubuntu 
Shell :: Exception: No Linux desktop project configured. See 
Shell :: change default browser is not working in manjaro 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =