Created
March 27, 2014 05:16
-
-
Save tonejito/9800818 to your computer and use it in GitHub Desktop.
Update all branches of the repository
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 | |
# = ^ . ^ = | |
for branch in `git branch | cut -c 3- | tr '\n' ' '` ; do git checkout $branch && git pull && git status ; done ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment