提交到 SVN 存储库的本地副本 [英] Making Commits to a Local copy of an SVN repository

查看:34
本文介绍了提交到 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 存储库的本地副本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆