Skip to content

Instantly share code, notes, and snippets.

@nerflad
Created November 28, 2016 17:43
Show Gist options
  • Save nerflad/bc5d5e6c7026969839888f04a4b5e0a1 to your computer and use it in GitHub Desktop.
Save nerflad/bc5d5e6c7026969839888f04a4b5e0a1 to your computer and use it in GitHub Desktop.
#!/usr/bin/fish
set currentbranch (git branch | awk '{print $2}' | grep -v -e '^$');
set otherbranches (git branch | awk '{print $1}' | grep -v -e '\*');
git pull;
for i in $otherbranches
git checkout $i
git pull;
end
git checkout $currentbranch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment