Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@garaemon
Created March 8, 2019 01:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save garaemon/084d1c575e63a57c872eff85f1c439c1 to your computer and use it in GitHub Desktop.
Save garaemon/084d1c575e63a57c872eff85f1c439c1 to your computer and use it in GitHub Desktop.
Checkout default branch for all the repositories under catkin workspace
#!/bin/bash
wstool foreach "bash -c 'git symbolic-ref refs/remotes/origin/HEAD | sed s@^refs/remotes/origin/@@ | xargs git checkout'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment