]> git.mxchange.org Git - jprojects-scripts.git/blobdiff - pull-stick.sh
Parameter 'r' for resetting hard projects added
[jprojects-scripts.git] / pull-stick.sh
index edc6784f1e198a4a4a4eaa8251578c0eb6144c96..c65578386902d47d67b24d42739b67b2674c6789 100755 (executable)
@@ -15,6 +15,10 @@ for project in ${LIST}; do
        then
                echo "$0: Checkout '${project}' ..."
                git checkout -- .
        then
                echo "$0: Checkout '${project}' ..."
                git checkout -- .
+       elif [ "$1" = "r" ]
+       then
+               echo "$0: Resetting '${project}' ..."
+               git reset --hard
        fi
 
        echo "$0: Pulling '${project}' ..."
        fi
 
        echo "$0: Pulling '${project}' ..."