Skip to content

Instantly share code, notes, and snippets.

@DuckOfDoom
Last active July 13, 2020 16:21
Show Gist options
  • Save DuckOfDoom/c9e615ea8f8c12f6d01f86b40c5c0abf to your computer and use it in GitHub Desktop.
Save DuckOfDoom/c9e615ea8f8c12f6d01f86b40c5c0abf to your computer and use it in GitHub Desktop.
cd /d/Games/World\ of\ Warcraft/
if [[ $# -eq 0 ]]; then
cp -r /c/Users/v.yanovsky/AppData/Local/TekkenGame .
#check out submodule
cd _retail_/Interface/Addons/DOD
git checkout master
git add .
git commit -m "Update"
git push
cd ../../../..
git add .
git commit -m "Update"
git push
else
read -p "Reverting all local changes and pulling from git. Are you sure?" -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
git reset --hard
git clean -df
git pull
git submodule update
cp -rf TekkenGame/ /c/Users/v.yanovsky/AppData/Local
fi
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment