Skip to content

Instantly share code, notes, and snippets.

@SmiddyPence
Created February 19, 2019 10:26
Show Gist options
  • Save SmiddyPence/456a85ef62fbe502f67f3b2f30f679a1 to your computer and use it in GitHub Desktop.
Save SmiddyPence/456a85ef62fbe502f67f3b2f30f679a1 to your computer and use it in GitHub Desktop.
Git Update Multiple Repos
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