From 81f5f37fb2db170b2bc97b2fc17029bc68361d2f Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Thu, 12 May 2016 20:49:24 +0200 Subject: [PATCH] Parameter 'r' for resetting hard projects added Signed-off-by: Roland Haeder --- pull-stick.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pull-stick.sh b/pull-stick.sh index edc6784..c655783 100755 --- a/pull-stick.sh +++ b/pull-stick.sh @@ -15,6 +15,10 @@ for project in ${LIST}; do then echo "$0: Checkout '${project}' ..." git checkout -- . + elif [ "$1" = "r" ] + then + echo "$0: Resetting '${project}' ..." + git reset --hard fi echo "$0: Pulling '${project}' ..." -- 2.30.2