Created
July 17, 2019 15:10
-
-
Save pfrozi/b9ded05cba8e92edadf7821d389f31da to your computer and use it in GitHub Desktop.
Update all git folders
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
#!/bin/bash | |
for p in $(ls); do cd $p && git fetch && git reset --hard && git clean -xfd && git checkout master && git pull origin master && cd ..; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment