Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

github download all branches zip

#!/bin/bash
set -x #echo on
remote_url=$(git config --get remote.origin.url)
for branch in $(git branch --all | grep '^s*remotes' | egrep --invert-match '(:?HEAD|master)$'); do
		branch_name=$(echo $branch| cut -d'/' -f 3)
    git clone -b $branch_name $remote_url $branch_name
done
Comment

PREVIOUS NEXT
Code Example
Shell :: ubuntu add user to dailout 
Shell :: copy one file to another in linux 
Shell :: virtualbox extension pack linux 
Shell :: "set -x " bash 
Shell :: ubuntu install all language packs 
Shell :: remove a filled directory in linux terminal 
Shell :: prisma format schema 
Shell :: yum repository 
Shell :: set up minimize,maximize,close button on left side ubuntu 
Shell :: alias pc ubuntu ssh 
Shell :: install tesseract-ocr jpn 
Shell :: how to add code lines in github editor 
Shell :: sdkmanager "system-images;android-27;google_apis_playstore;x86" 
Shell :: docker-compose centos 7 
Shell :: run command on ctrl-c in shell script 
Shell :: delete a pushed commit 
Shell :: reset to commit 
Shell :: mendeley on ubuntu 
Shell :: unix timestamp bash 
Shell :: how to execute an sh file in linux 
Shell :: migration angular version 
Shell :: how to edit and save crontab in linux 
Shell :: linux command find program 
Shell :: vmware not working after ubuntu upgrade 
Shell :: free dock for linux 
Shell :: linux get part of string 
Shell :: openstack show ports 
Shell :: can not login kali linux 
Shell :: ssh config only key 
Shell :: brew Cannot install on Intel processor in ARM default prefix (/opt/homebrew)! 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =