![](/img/trans.png)
[英]How to convert to GIT an old SVN repository with trunk/branches created later
[英]How do I convert my SVN repository to Git while preserving branches?
請幫忙。 這似乎不適合我:
git svn clone --stdlayout --authors-file=../authors.txt file:///home/path
最簡單的方法是使用svn2git ,這是一個ruby腳本,可以為您處理所有這些。 我在過去的8個月左右用它來將幾個相當大的顛覆回購轉換為git; 它是迄今為止我找到的最好的工具。
有一個非常完善的一套可用指令在這里 ,包括如何SVN“標簽”和“分支”轉化為實際的Git標簽和分支。
我會嘗試使用SmartGit克隆您的SVN:它將諸如分支,標簽,忽略,EOL之類的SVN概念轉換為相應的Git概念。
也許我會找到一個簡單的Howto ....
我非常幸運地明確指定了分支和標簽:
git svn clone http://server.com/svn/project -T trunk -b branches -t tags project
git remote add origin git@server.com:project
git push origin master
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.