Created
April 4, 2014 17:26
-
-
Save nlacourte/9979159 to your computer and use it in GitHub Desktop.
Lazy git workdir update
This file contains hidden or 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
| #!/bin/bash -eu | |
| find . -type d -name .git -execdir git fetch --quiet --prune \; , -type d -name .git -execdir git fetch --tags --quiet --prune \; , -type d -name .git -execdir bash -c "test -n \"\$(git for-each-ref --format='%(upstream:short)' \$(git symbolic-ref -q HEAD))\" && git pull --rebase --quiet " \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment