问题是很多项目都是基于Subversion的.所以问题是如何与Subversion一起使用git.不要完全替换svn,并使用git.
我可以想出的最简单的方法是创建基于您已经签出的Subversion分支代码的git.然后使用git来控制本地.修改后,提交给本地git服务器,然后使用Subversion退出到远程服务器. Subversion就像容器中包含git一样.
BTW,我使用xcode 3.x进行编码,之前尝试使用xcode 4,但令人失望. (Xcode 4已经出来了,但还没有重试)
你怎么想 ?还是更好的选择?
谢谢
解决方法
Subversion is just like container to contain git
请务必阅读git-svn附带的CAVEATS部分:
CAVEATS
For the sake of simplicity and interoperating with a less-capable system (SVN),it is recommended that all
git svn
usersclone
,fetch
anddcommit
directly from the SVN server,and avoid all git clone/pull/merge/push operations between git repositories and branches.
The recommended method of exchanging code between git branches and users is gitformat-patch
andgit am
,or just ‘dcommit’ing to the SVN repository.Running
git merge
orgit pull
is NOT recommended on a branch you plan todcommit
from.
Subversion does not represent merges in any reasonable or useful fashion; so users using Subversion cannot see any merges you’ve made. Furthermore,if you merge or pull from a git branch that is a mirror of an SVN branch,dcommit
may commit to the wrong branch.
所以你可以使用Git的任何合并和publication工作流程,只要你离开SVN分支机构就可以独立镜像(合并或者退出).