告诉 Mercurial 在合并和更新时忽略文件

发布于 2024-10-28 02:00:54 字数 328 浏览 1 评论 0原文

我希望 Mercurial 忽略我自己的 log/development.log 本地副本(我在 RoR 上)。

我使用“hg忘记文件名”来忘记该文件,然后提交该更改。

现在似乎成功了..但是每次我现在与其他变更集合并时,我都会看到

remote changed log/development.log which local deleted
use (c)hanged version or leave (d)eleted? 

我做错了什么?我怎样才能让这条消息消失?我只是希望我的本地副本与存储库中的副本分开。

谢谢...

I want mercurial to ignore my own local copy of log/development.log (I am on RoR).

I used "hg forget filename" to forget the file, and then committed that change.

It seems to be successful now.. but every time I merge with other changesets now, I see

remote changed log/development.log which local deleted
use (c)hanged version or leave (d)eleted? 

what am I doing wrong? how can I make this msg go away? I just want my local copy to be separate from the copy in the repository.

Thank you...

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

绝對不後悔。 2024-11-04 02:00:54

如果您删除了行中的文件,并将其与仍然具有该文件的文件合并,则会出现此消息。摆脱它的唯一方法是从您要合并的存储库/分支中删除此文件(或者让其所有者删除它,如果您不控制它们)。

然后永远不要再将临时日志文件提交到存储库中。

If you deleted the file in your line, and you merge it with the one that still has this file, this message is to be expected. The only way to get rid of it is to remove this file from the repos/branches you're merging with (or get their owners to remove it, if you don't control them).

And then never commit a temporary log file into the repository ever again.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文