Skip to content

Instantly share code, notes, and snippets.

@j-rivero
Last active August 29, 2023 18:56
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 j-rivero/7e81d7435e4f6a2f883ab56afa595d87 to your computer and use it in GitHub Desktop.
Save j-rivero/7e81d7435e4f6a2f883ab56afa595d87 to your computer and use it in GitHub Desktop.
Helper to create new forks of ros2-gbp
#!/bin/bash
git remote add upstream https://github.com/ros2-gbp/ros_ign-release
git fetch upstream
for branch in `git branch -a | grep remotes | grep -v HEAD`; do
git branch --track ${branch#remotes/upstream/} $branch
done
git push master origin
git push --all origin
git push --tags origin
git remote remove upstream
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment