svn忽略本地文件

发布于 2025-01-09 07:10:55 字数 713 浏览 3 评论 0原文

基本上,我似乎需要 git 功能的 svn 模拟,在 帖子

这是我的要求。 我有一个分支,我需要对文件进行一些本地更改,但不想提交它们,所以我想忽略它们,但仍然保持文件版本并能够集成来自主干的更改(与 此处)。正如我正确理解的那样,命令 svn propset svn:ignore "file.ext" . (cp.this post)将完全取消文件版本。并且这个状态将被提交到分支,并最终在合并时提交到主干。 (我想,在使用 TortoiseSVN GUI 时应用“取消版本并添加到忽略列表”时也是如此。)所以在这种特殊情况下我需要其他东西。如果可能的话,请提供 TortoiseSVN 的示例。

我在服务器上使用 Subversion 1.11.1,在本地计算机上使用 Subversion 1.14.1,在 TortoiseSVN 1.14.1 上分别使用。

Basically, it seems that I need an svn analog of the git feature, pointed out in this post.

Here are my requirments.
I have a branch where I need to make some local changes on a file but never want to commit them so I'd like ot ignore them, but still keep the file versioned and be able integrate changes from trunk (so differently as here). As I understood correctly the command svn propset svn:ignore "file.ext" . (cp. this post) would unversion the file completely. And this state wuld be commited to the branch and eventually to the trunk when merged. (The same would be when applying "unversion and add to the ignore list" when using TortoiseSVN GUI, I suppose.) So I would need something else in this particular case. Please, give also examples for TortoiseSVN, if possible.

I use Subversion 1.11.1 on the server, Subversion 1.14.1 on the local machine and TortoiseSVN 1.14.1 respectively.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文