gpt4 book ai didi

mercurial - hg忘记还是忽略更好?

转载 作者:行者123 更新时间:2023-12-01 09:34:12 24 4
gpt4 key购买 nike

我有一些不需要提交的二进制文件。我需要它们用于本地。我应该 hg forget binary-folder/ 还是将此行添加到 .hgignore

glob:binary-folder/*

哪个更好?

谢谢。

最佳答案

以下引用来自 this mailing list post作者:马丁·盖斯勒。

A file can be tracked or not, you use 'hg add' to track a file and 'hg remove' or 'hg forget' to un-track it. Using 'hg remove' without flags will both delete the file and un-track it, 'hg forget' will simply un-track it without deleting it.

Un-tracked files show up with a question mark in 'hg status', unless they are matched by the .hgignore file. So when you 'hg forget' a file, it will typically show up as un-tracked in 'hg status', unless you have a line in your .hgignore that matches said file.

Tracked files are never affected by the .hgignore file.

对于您的情况,显然忽略将是首选。

关于mercurial - hg忘记还是忽略更好?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11354845/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com