Last active
December 9, 2019 16:59
-
-
Save yoeun/c0b95f42a8e264a8074795ccdf744b7f to your computer and use it in GitHub Desktop.
Updates all local branches to latest upstream
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
git for-each-ref --shell --format="if [[ %(refname:short) != \"_ignore\"* ]] && [[ ! -z %(upstream) ]]; then git checkout %(refname:short) && git rebase %(upstream:short); fi" refs/heads/ | sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment