Skip to content

Instantly share code, notes, and snippets.

View sandrokeil's full-sized avatar

Sandro Keil sandrokeil

View GitHub Profile
@sandrokeil
sandrokeil / git-batch-upstream-branch-update
Created January 5, 2016 22:59
git-batch-upstream-branch-update
#!/bin/bash
if [ "$#" -ne 1 ]; then
echo "First parameter is a file with a list of repos git-batch-upstream-branch-update repos.txt"
fi
ROOTDIR=$(pwd)
cd $ROOTDIR
cat $1 | while read line
@sandrokeil
sandrokeil / git-batch-upstream
Last active January 5, 2016 21:53
git-batch-upstream
#!/bin/bash
if [ "$#" -ne 1 ]; then
echo "First parameter is a file with a list of repos and second parameter (optional) is git path e.g. git-batch-upstream repos.txt git@github.com:sandrokeil/"
fi
ROOTDIR=$(pwd)
cd $ROOTDIR
cat $1 | while read line
@sandrokeil
sandrokeil / git-batch-clone
Last active April 8, 2017 23:29
git-batch-clone
#!/bin/bash
if [ "$#" -ne 2 ]; then
echo "First parameter is a file with a list of repos and second parameter is the git path e.g. git-batch-clone repos.txt git@github.com:sandrokeil/"
fi
cd $(pwd)
cat $1 | while read line
do
if [ ! -d "$line" ]; then