]> git.somenet.org - tools/githelper.git/blob - gresetAll.sh
added git reset all.
[tools/githelper.git] / gresetAll.sh
1 #!/bin/bash
2 echo "running git reset --hard on all repos in `pwd` in 30 sec."
3 echo "THIS IS POTENTIONALLY FATAL, KNOW WHAT YOU ARE DOING!"
4 sleep 30
5
6 find . -path '*.git' -type d -execdir echo "------------------------------------------" \; -execdir pwd \; -execdir git reset --hard \;
7