Add script to completely reset repos from leftovers

This commit is contained in:
SpiritCroc 2023-04-22 10:10:55 +02:00 committed by su-ex
parent 10a5112285
commit 979be00158

15
hard_reset_repos.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash
set -e
mydir="$(dirname "$(realpath "$0")")"
cd "$mydir"
source ./merge_helpers.sh
# Note: this doesn't delete files starting with a dot,
# and in particular not the '.git' directory, which we
# want to keep
forall_repos bash -c 'rm -rf *'
forall_repos git reset HEAD --hard