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=3ef4fb02985276e69881204aaa2d54ec6c249bf7;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}' ..."