blob: 9e10f776804705f135aa1e3906df7b43b5675612 [file] [log] [blame]
git rm --cached -r . > /dev/null
git reset --hard > /dev/null
git show-branch $1
if [ "$?" = "0" ]; then
git checkout $1
else
git checkout master
fi
if $2; then
git pull
fi