mercurial - 存储 .hgignore 被认为是好的做法?

标签 mercurial

我不经常修改这个文件,但是当我这样做时,感觉这不是一个好习惯。那么存储 .hgignore 被认为是好的做法吗?

最佳答案

是的,您应该将 .hgignore 文件保存在您的仓库中。

https://www.mercurial-scm.org/wiki/QuickStart

You'll want to track your .hgignore file too!



http://hgbook.red-bean.com/read/file-names-and-pattern-matching.html

To have Mercurial permanently ignore such files, create a file named .hgignore in the root of your repository. You should hg add this file so that it gets tracked with the rest of your repository contents, since your collaborators will probably find it useful too.

关于mercurial - 存储 .hgignore 被认为是好的做法?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7297003/

相关文章:

url - 使用 Mercurial 路径作为 URL 的一部分

mercurial - HG:撤消历史记录的提交

mercurial - 如何使用 Mercurial 忘记所有已删除的文件

caching - 无论如何要清理mercurial缓存

version-control - 安装没有管理员权限的源代码管理

mercurial - 为什么 hg update 命令在某些情况下会 merge ,但不是全部?

Mercurial https 克隆 : "abort: error: (...) wrong version number"

mercurial - 如何快速判断哪些文件在 mercurial 修订中有所不同

python - 将 win32lfn 扩展与 Mercurial 捆绑在一起

mercurial - 如何使用 Mercurial 在源代码中嵌入版本信息