Skip to content

Instantly share code, notes, and snippets.

@tonejito
Created March 27, 2014 05:16
Show Gist options
  • Save tonejito/9800818 to your computer and use it in GitHub Desktop.
Save tonejito/9800818 to your computer and use it in GitHub Desktop.
Update all branches of the repository
#!/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