这是我第一次尝试做git-svn项目.我有直接访问的Debian服务器。
信息:-本地SVN是一个分支,我不会做任何本地或远程提交
我想归档的是:
有人能帮我吗?有这样的设置的例子吗?
发布于 2012-07-29 21:41:58
对于Git来说,这是非常简单的。
第一次使用git svn“克隆”远程存储库
git svn init --trunk=trunk http://miranda.googlecode.com/svn miranda
cd miranda
git svn fetch
git checkout -b Miranda-svn remotes/trunk 注意:您可能希望限制使用-r start:end开关获取的修订数。
然后为github添加一个新的遥控器
git remote add origin git@github.com:myuser/test.git最后将更改推送到github远程
git push origin Miranda-svn要用SVN的内容更新Git分支:
git checkout Miranda-svn # Just to be sure that we are on the correct branch
git svn rebase
git push origin Miranda-svn将SVN更改合并到另一个Git分支:
git checkout master # Or whatever branch you want
git merge --no-ff Miranda-svnNB!由于SVN具有线性历史,并且"svn“分支将基于每个”拉“,因此您不希望使用此设置将任何内容提交到Miranda-svn分支。
https://stackoverflow.com/questions/11713141
复制相似问题