Created
March 8, 2019 01:40
-
-
Save garaemon/084d1c575e63a57c872eff85f1c439c1 to your computer and use it in GitHub Desktop.
Checkout default branch for all the repositories under catkin workspace
This file contains hidden or 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
#!/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