Skip to content

Instantly share code, notes, and snippets.

@viankakrisna
Created August 30, 2016 12:39
Show Gist options
  • Select an option

  • Save viankakrisna/d2acc88d4227720d017d17cec4066f84 to your computer and use it in GitHub Desktop.

Select an option

Save viankakrisna/d2acc88d4227720d017d17cec4066f84 to your computer and use it in GitHub Desktop.
bash command for git resetting all directory and pull latest commit
for d in ./*/ ; do (cd "$d" && git reset --hard && git pull origin develop); done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment