Skip to content

Instantly share code, notes, and snippets.

@rnjn
Last active August 29, 2015 14:11
Show Gist options
  • Save rnjn/30db5d4445acfa653537 to your computer and use it in GitHub Desktop.
Save rnjn/30db5d4445acfa653537 to your computer and use it in GitHub Desktop.
managing multiple git repositories in a subfolder
find . -type d -depth 1 -print0 -exec git -C {} status --ignore-submodule=dirty \;
find . -type d -depth 1 -print0 -exec git -C {} reset --HARD \;
find . -type d -depth 1 -print0 -exec git -C {} pull --rebase \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment