]> git.mxchange.org Git - jprojects-scripts.git/commitdiff
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 edc6784f1e198a4a4a4eaa8251578c0eb6144c96..c65578386902d47d67b24d42739b67b2674c6789 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}' ..."