added git reset all.
authorSomeone <someone@somenet.org>
Fri, 18 Jan 2013 03:39:48 +0000 (04:39 +0100)
committerSomeone <someone@somenet.org>
Fri, 18 Jan 2013 03:39:48 +0000 (04:39 +0100)
gresetAll.sh [new file with mode: 0755]
setup.sh

diff --git a/gresetAll.sh b/gresetAll.sh
new file mode 100755 (executable)
index 0000000..895d00b
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/bash
+echo "running git reset --hard on all repos in `pwd` in 30 sec."
+echo "THIS IS POTENTIONALLY FATAL, KNOW WHAT YOU ARE DOING!"
+sleep 30
+
+find . -path '*.git' -type d -execdir echo "------------------------------------------" \; -execdir pwd \; -execdir git reset --hard \;
+
index 8fc5685916d80cdb91acf76e86441f6845231df8..48fc19870c4fd662db3ccd90004803e0d8e752b3 100755 (executable)
--- a/setup.sh
+++ b/setup.sh
@@ -6,4 +6,5 @@ sleep 10
 cd ..
 ln -s githelper/gpullAll.sh gpullAll.sh
 ln -s githelper/ggcAll.sh ggcAll.sh
+ln -s githelper/gresetAll.sh gresetAll.sh