Skip to content

Instantly share code, notes, and snippets.

@mcomisso
Created March 13, 2016 22:34
Show Gist options
  • Select an option

  • Save mcomisso/39a1a6ecb7f971555771 to your computer and use it in GitHub Desktop.

Select an option

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