Skip to content

Instantly share code, notes, and snippets.

@mcomisso
Created March 13, 2016 22:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcomisso/39a1a6ecb7f971555771 to your computer and use it in GitHub Desktop.
Save mcomisso/39a1a6ecb7f971555771 to your computer and use it in GitHub Desktop.
FORCE update all the git projects inside the current directory
#!/bin/zsh
for dir in */; do cd $dir; git clean -df; git reset --hard; git pull; cd ..; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment