- r - 以节省内存的方式增长 data.frame
- ruby-on-rails - ruby/ruby on rails 内存泄漏检测
- android - 无法解析导入android.support.v7.app
- UNIX 域套接字与共享内存(映射文件)
几年前Subversion很流行,现在git开始流行,越来越多的人想用git代替Subversion。
问题是很多项目都是基于 Subversion 的。所以问题是如何将 git 与 Subversion 一起使用。不要完全替换svn,使用git。
我能想到的最简单的方法是根据您已经 checkout 的 Subversion 分支代码创建 git。然后在本地用git控制。修改后,提交到本地git服务器,然后用Subversion check out 到远程服务器。 Subversion 就像容器一样包含 git。
顺便说一句,我正在用 xcode 3.x 编码,之前尝试过 xcode 4,但很失望。 (Xcode 4已经出来了,还没有重试)
你怎么看?或者有更好的选择吗?
谢谢
最佳答案
Subversion is just like container to contain git
请务必阅读 git-svn 附带的注意事项部分:
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.
所以你可以采用任何 merge 和publication使用 Git 的工作流程,只要您保留单独镜像的 SVN 分支(就 merge 或 rebase 而言)。
关于xcode - 将 git 与 svn 一起使用的好习惯,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5294516/
在我生活的世界中,构建一个将所有飞镖都扔到墙上的解决方案,并希望其中一些能命中靶心是一种非常糟糕的解决方案方法。 那么,我的问题出现了,什么时候在约定可接受的生产系统中使用 INSERT IGNORE
在数据处理时,经常会因为index报错而发愁。不要紧,本次来和大家聊聊pandas中处理索引的几种常用方法。 1.读取时指定索引列 很多情况下,我们的数据源是 CSV 文件。假设
关闭。这个问题是opinion-based .它目前不接受答案。 想要改进这个问题? 更新问题,以便 editing this post 可以用事实和引用来回答它. 关闭 6 年前。 Improve
我是一名优秀的程序员,十分优秀!