Oneliner to backup git repos from Gitolite

by

in

ssh <user>@<githost> info | sed -n ‘/^ R W/p’ | sed -r ‘s/^.{5}//’ | while read line ; do git clone ssh://<user>@<host>/$line ; done


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *