Skip to content

Instantly share code, notes, and snippets.

Sandro Keil sandrokeil

Block or report user

Report or block sandrokeil

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@sandrokeil
sandrokeil / git-batch-upstream-branch-update
Created Jan 5, 2016
git-batch-upstream-branch-update
View 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 Jan 5, 2016
git-batch-upstream
View 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
View 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
You can’t perform that action at this time.