[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/og-python-scripts/GitPython/master/init-tests-after-clone.sh [Back]  [Original]

#!/bin/bash -e

if [[ -z "$TRAVIS" ]]; then
  read -p "This operation will destroy locally modified files. Continue ? [N/y]: " answer
  if [[ ! $answer =~ [yY] ]]; then
    exit 2
  fi
fi

git tag __testing_point__
git checkout master || git checkout -b master
git reset --hard HEAD~1
git reset --hard HEAD~1
git reset --hard HEAD~1
git reset --hard __testing_point__

Web Proxy Viewer  |  New URL  |  Original Page