提交到 SVN 存储库的本地副本

编程入门 行业动态 更新时间:2024-10-26 04:23:47
本文介绍了提交到 SVN 存储库的本地副本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我已经查看了托管在 google code 上的一个项目的副本.我将对其进行更改,并且希望将这些更改保留在我本地机器上的存储库中的版本控制之下.

I've checked out a copy of a project hosted on google code. I'm going to be making changes to it, and I'd like to keep these under version control on a repository on my local machine.

如果可能,我想使用 svn,因为我已经知道创建存储库、签出和提交的基本知识.

I'd like to use svn if possible, because I already know the very basics of creating a repository, checking out and committing.

我可以用 svn 做到这一点,还是应该查看分布式版本控制?我使用的是 Linux,而不是 Windows.

Can I do this with svn or should I be looking at distibuted version control? I'm using Linux, not Windows.

推荐答案

我很高兴将 svn 用于远程存储库 + 使用 mercurial 或 git 作为 svn 存储库之上的本地存储库.

I've been very happy using svn against a remote repository + using mercurial or git as a local repository on top of the svn repo.

它们都是分布式源代码控制工具,我喜欢它们的原因略有不同.

They're both distributed source control tools, and I like them both for slightly different reasons.

我发现使用我自己的本地存储库与远程 subversion 存储库重合是非常强大的...

I've found it to be very powerful to use my own local repo that coincides with a remote subversion repository...

更新

虽然我真的很喜欢关于从 google 代码导出和导入到本地存储库的答案,但我真正喜欢 svn 和 git/mercurial 的组合是您可以定期执行 svn 更新以从中获取最新代码google,然后通过 git commit 或 hg commit 将最新代码添加到本地存储库.

Although I really like the answers about exporting from google code, and importing to your local repo, what I really like about the combination of svn and git/mercurial is that you can periodically do an svn update to get the latest code from google, and then to a git commit or an hg commit to add the latest code to your local repo.

比定期将 svn 导出到您的存储库以获取更新要简单得多.

Much simpler than periodically doing an svn export into your repo to get updates.

此外,使用 git/mercurial,您可以使用强大的分支/修补工具,而 svn 并不那么容易.

Additionally, using git/mercurial, you have powerful branching/patching tools available that svn doesn't make so easy.

更多推荐

提交到 SVN 存储库的本地副本

本文发布于:2023-11-03 06:47:28,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1554485.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:副本   SVN

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!