docbrown/scripts/clean_fork.sh
2021-03-29 16:13:23 +02:00

8 lines
235 B
Bash
Executable file

#!/bin/sh
set -e
# clean up the fork and restart from upstream
git remote add upstream https://github.com/thepracticaldev/dev.to
git fetch upstream
git checkout master
git reset --hard upstream/master
git push origin master --force