Created
July 29, 2015 15:22
-
-
Save arielallon/e3a7a960f5e19c87763d to your computer and use it in GitHub Desktop.
Migrate branches and tags to git from svn when using Atlassian's scripts
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
for branch in `git branch -r | grep "origin/[^tags|master|trunk]" | sed 's/ origin\///'`; do | |
git branch $branch remotes/origin/$branch | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Courtesy of http://stackoverflow.com/a/25994440/1200542
The
svn-migration-scripts.jar clean-git
command seems to fail creating the remote branches locally so they can be pushed in the migration.The above achieves what was intended.