Last active
June 6, 2019 10:22
-
-
Save migueltg/eb874af88dd5c08587f6e039a29f83eb to your computer and use it in GitHub Desktop.
Run git pull over all subdirectories
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
find . -type d -depth 2 -exec echo git --git-dir={}/.git --work-tree=$PWD/{} status \; | |
find . -type d -depth 2 -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