docbrown/scripts/clean_fork.sh

8 lines
229 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 main
git reset --hard upstream/main
git push origin main --force