[英]git svn: No remote branches after cloning
I am trying to use git-svn for a svn repository. 我正在尝试将git-svn用于svn存储库。 Unfortunatelly I can't seem to get it work.
不幸的是,我似乎无法正常工作。
As I clone the repository 当我克隆存储库时
git svn clone https://svn.tugraz.at/svn/reponame
I get the message that an empty git repository has been initialized: 我收到一条消息,说明已初始化一个空的git存储库:
Initialized empty Git repository in /home/snooc/workspace/reponame/.git/
and 和
git branch -a
also just gives me 也给我
*master
These are my configs: 这些是我的配置:
user.name=Stefan Falk
user.email=<a-valid-email-address>
push.default=simple
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
svn-remote.svn.url=https://svn.tugraz.at/svn/reponame
svn-remote.svn.fetch=:refs/remotes/git-svn
What am I missing? 我想念什么?
You should've used --stdlayout option of git svn clone. 您应该使用git svn clone的--stdlayout选项。 This option makes git treat trunk, branches, and tags folders in a special way.
此选项使git以特殊方式处理主干,分支和标签文件夹。 Without it, git just mirrors naturally flat structure of svn repository.
没有它,git只会自然地反映svn存储库的平面结构。
What does the --stdlayout do in git svn clone? --stdlayout在git svn克隆中做什么?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.