From 2d41c282078d95eaa5fb078e0169a7f37e9fcc77 Mon Sep 17 00:00:00 2001 From: Someone Date: Fri, 18 Jan 2013 04:39:48 +0100 Subject: [PATCH] added git reset all. --- gresetAll.sh | 7 +++++++ setup.sh | 1 + 2 files changed, 8 insertions(+) create mode 100755 gresetAll.sh diff --git a/gresetAll.sh b/gresetAll.sh new file mode 100755 index 0000000..895d00b --- /dev/null +++ b/gresetAll.sh @@ -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 \; + diff --git a/setup.sh b/setup.sh index 8fc5685..48fc198 100755 --- 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 -- 2.43.0