Created
February 19, 2019 10:26
-
-
Save SmiddyPence/456a85ef62fbe502f67f3b2f30f679a1 to your computer and use it in GitHub Desktop.
Git Update Multiple Repos
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
git config --global alias.up '!git remote update -p; git merge --ff-only @{u}' | |
#!/bin/sh | |
for repo in repo1 repo2 repo3 repo4; do | |
(cd "${repo}" && git checkout master && git up) | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment