Skip to content

Instantly share code, notes, and snippets.

@tovin07
Created April 9, 2018 06:37
Show Gist options
  • Save tovin07/d783bde01544c05b302583e10b96b022 to your computer and use it in GitHub Desktop.
Save tovin07/d783bde01544c05b302583e10b96b022 to your computer and use it in GitHub Desktop.
Git pull all master branch
find . -mindepth 1 -maxdepth 1 -type d -exec git --git-dir={}/.git --work-tree=$PWD/{} checkout master \;
find . -mindepth 1 -maxdepth 1 -type d -exec git --git-dir={}/.git --work-tree=$PWD/{} pull origin master \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment