不使用--stdlayout从Git-Svn克隆中恢复 [英] Recover from Git-Svn clone without --stdlayout

查看:308
本文介绍了不使用--stdlayout从Git-Svn克隆中恢复的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无意中克隆了一个Subversion版本库,但没有添加--stdlayout参数,
给了我一些东西:

  $ git svn clone --prefix = svn / svn + ssh://code.example.com/project 
[两周后]
$ git分支-a
* master
remotes / svn / git-svn

随着svn / git-svn布局变得像:

  branches / * 
tags / *
trunk / *


$ p

有什么方法可以恢复?

解决方案

目前,它看起来像一个新的开始是唯一可以保持与SVN互操作性的选项。


I've accidentally cloned a Subversion repository without adding the --stdlayout argument, giving me something like:

$ git svn clone --prefix=svn/ svn+ssh://code.example.com/project
[two weeks later]
$ git branch -a                                                                                                
* master
  remotes/svn/git-svn

With the svn/git-svn layout being something like:

branches/*
tags/*
trunk/*

Any way to recover from this?

解决方案

Currently, it looks like a fresh start is the only option which will maintain interoperability with SVN.

这篇关于不使用--stdlayout从Git-Svn克隆中恢复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆