Skip to content

Instantly share code, notes, and snippets.

@mertcanaltin
Last active September 8, 2022 17:51
Show Gist options
  • Save mertcanaltin/af29d940eb9e7f77b4a384aad2830e80 to your computer and use it in GitHub Desktop.
Save mertcanaltin/af29d940eb9e7f77b4a384aad2830e80 to your computer and use it in GitHub Desktop.
a unix/mac terminal command that can git pull all repos at once update
find . -maxdepth 1 -type d -exec sh -c '(cd {} && git reset --hard && git clean -fd && git submodule update --init --recursive && git pull && git fetch)' ';'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment