Last active
May 20, 2019 09:30
-
-
Save wrossmck/5b4dac22786d52fae46642c5e344dc1c to your computer and use it in GitHub Desktop.
reset all git repos to origin/master
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cpwd=$(pwd); for f in $(ls -d */); do cd $cpwd/$f && echo `pwd` && git reset --hard origin/master && cd .. ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment