From: Roland Haeder Date: Thu, 12 May 2016 18:49:24 +0000 (+0200) Subject: Parameter 'r' for resetting hard projects added X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=81f5f37fb2db170b2bc97b2fc17029bc68361d2f;p=jprojects-scripts.git Parameter 'r' for resetting hard projects added Signed-off-by: Roland Haeder --- 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}' ..."