Parameter 'r' for resetting hard projects added
authorRoland Haeder <roland@mxchange.org>
Thu, 12 May 2016 18:49:24 +0000 (20:49 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 12 May 2016 18:49:24 +0000 (20:49 +0200)
Signed-off-by: Roland Haeder <roland@mxchange.org>
pull-stick.sh

index edc6784..c655783 100755 (executable)
@@ -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}' ..."