如何迁移“脏”数据SVN 工作副本来清理 SVN+GIT 环境?
我在 sourceforge 上有一个项目的工作副本,其中有许多来自主干的小修改。我将其中一些作为补丁提交。我想,有些会被接受;有些则可能会被接受。有些不会。与此同时,每次我进行更新时,都会发生混乱,因为某些修改是对某些文件的重大重写。
所以我认为我想做的是拥有一个我工作的本地 git 存储库,并定期进行 stash、stash-apply。
我的问题是:我该如何开始?我是否只需使用 git-svn 从 svn 存储库中签出,然后复制我的旧本地工作副本(减去 .svn 目录)?
我到底做对了吗?
应该让生活变得更简单的两个因素是:1)我对本地历史不太关心,2)我只有 SVN 存储库的读取权限。
I have a working copy of a project on sourceforge which has many small modifications from the trunk. I submit some of these as patches. Some will be accepted, I assume; some won't. In the meantime, every time I do an update, chaos ensues because some of the modifications are major rewrites of certain files.
So I think what I want to do is have a local git repository that I work in, and periodically do stash, ,stash-apply.
My question is: how do I get started? Do I simply use git-svn to checkout from the svn repository, then copy over my old local working copy (minus .svn dirs)?
Am I even going about this right?
Two factors that should make life simpler are that 1) I'm not very fussed about local history, and 2) I only have read access to the SVN repository.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你做事是正确的。使用 git-svn 使 svn 分支保持最新。将它们的任何新更改合并到您本地 git 中的任何分支。因为它是只读的,所以你不必担心提交到 svn,这应该可以帮你省去一些麻烦。
希望这有帮助
You are doing things correctly. Use git-svn to keep branches of svn up to date. Merge any new changes from them to any branches that you have locally in git. Since it's read only, you don't have to worry about committing to svn which should save you some headaches.
Hope this helps