diff --git a/update.bat b/update.bat new file mode 100755 index 0000000..6789b56 --- /dev/null +++ b/update.bat @@ -0,0 +1,12 @@ +echo "Updating package to latest master version" +echo "Fetching origin..." +git "fetch" "origin" +echo "Cleaning untracked files..." +git "clean" "-f" "-df" +echo "Resetting to HEAD..." +git "reset" "--hard" "HEAD" +echo "Pulling..." +git "pull" +echo "Checking out HEAD..." +git "checkout" "HEAD" +echo "Done" \ No newline at end of file diff --git a/update.sh b/update.sh new file mode 100755 index 0000000..8e06aba --- /dev/null +++ b/update.sh @@ -0,0 +1,19 @@ +#!/bin/bash +echo "Updating package to latest master version" + +echo "Fetching origin..." +git fetch origin + +echo "Cleaning untracked files..." +git clean -f -df + +echo "Resetting to HEAD..." +git reset --hard HEAD + +echo "Pulling..." +git pull + +echo "Checking out HEAD..." +git checkout HEAD + +echo "Done" \ No newline at end of file