简体   繁体   中英

git-svn vcs switch: where are my branches?

I converted a very large svn repository to a git repository with

git svn init svn/server/project --no-metadata
git svn fetch

This took the better part of two days to finish.

This repo should have quite a few branches but when I do "git branch" I get nothing but the master. They are listed under the branches directory, but shouldn't I see them with "git branch" as well?

"git branch -a" only shows master and remotes/git-svn.

Was it the --no-metadata switch that did this?

When initializing the git repository you need to use either the --trunk , --branches and --tags options or the --stdlayout option to git svn init in order to tell it the path to the directories to the trunk , branches and tags directories in the subversion repository.

See the manual page for git-svn for additional details.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM