Skip to content

Instantly share code, notes, and snippets.

@erichexter
Created March 10, 2015 14:28
Show Gist options
  • Save erichexter/3d307805beb8f873ab2b to your computer and use it in GitHub Desktop.
Save erichexter/3d307805beb8f873ab2b to your computer and use it in GitHub Desktop.
Update All Local Branches
git branch | %{ git checkout $_.Trim().Replace("* ","");git pull}
@erichexter
Copy link
Author

When using PoshGit & GitFlow I find that I need to pull all my branches when switching machines, from my desktop and laptop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment