Migrate all branches and tags

Fix issue #368