Skip to content

Instantly share code, notes, and snippets.

View b2arn's full-sized avatar

Alexander Gitovich b2arn

View GitHub Profile
@b2arn
b2arn / puller
Created August 13, 2012 16:13
Script to git pull all repos in directory
#!/bin/bash
current_dir=`pwd`/
dir=$current_dir
usage="Usage : `basename $0` [-d dir] [-h] args\nWhere args are directories that you don't whant to pull"
while getopts hd: opt; do
case $opt in
d)
if [ ! -d "$OPTARG" ] ; then