如何克隆不带.hg
文件夹的Mercurial存储库以节省时间(项目很大)?我只需要提示文件。克隆不带.hg的Mercurial存储库
14
A
回答
20
.hg
目录是存储完整存储库信息的目录。也就是说,存储库跟踪的所有文件及其修订信息。至于存储,它通常是非常高效的,因为它使用二进制差异进行压缩。
克隆存储库时,唯一被克隆的是.hg目录。从该.hg
中检索克隆后得到的工作副本。
如果您想要存储的是存储库信息(例如在服务器上),则可以使用hg update null
删除工作副本。
如果您想创建版本库的克隆版本,但没有版本信息,则可以使用hg archive
命令(请参阅下面的参考资料)。请注意,这个副本只是一个“工作副本”(使用一些常见的svn术语)。你不能提交,也不能进行任何其他的mercurial操作。
汞存档[选项] ... DEST
创建 库修订的无版本的存档
By default, the revision used is the parent of the working directory; use "-r" to specify a different revision. To specify the type of archive to create, use "-t". Valid types are: "files" (default): a directory full of files "tar": tar archive, uncompressed "tbz2": tar archive, compressed using bzip2 "tgz": tar archive, compressed using gzip "uzip": zip archive, uncompressed "zip": zip archive, compressed using deflate The exact name of the destination archive or directory is given using a format string; see "hg help export" for details. Each member added to an archive file has a directory prefix prepended. Use "-p" to specify a format string for the prefix. The default is the basename of the archive, with suffixes removed.
选项:在归档 的文件
--no-decode do not pass files through decoders -p --prefix
目录前缀-r --rev修订版本,用于分发-t --type分发类型以创建-I --include包括 名称匹配给定模式-X --exclude排除匹配给定的模式
+0
作为一个澄清,目的地可能包含格式化字符串提供的格式化信息,但普通的旧路径也可以。通过格式化,您可以在要归档的路径中编码有关回购的信息。 –
相关问题
- 1. 克隆到外部存储库的mercurial存储库
- 2. Mercurial hg服务多个存储库
- 3. 在Mercurial中克隆存储库的目的是什么?
- 4. 詹金斯mercurial克隆每个构建的Bitbucket存储库
- 5. 如何克隆特定变更集的Mercurial存储库?
- 6. 如何在Mercurial中克隆存储库的子文件夹?
- 7. 克隆存储库到GitHub
- 8. NGIT:克隆CodeCommit存储库
- 9. 克隆存储库和refspecs
- 10. 如何使用Mercurial将存储库克隆到远程服务器/存储库
- 11. 多个Mercurial存储库或单个克隆
- 12. 如何在mercurial中暂停/恢复存储库克隆?
- 13. 尝试克隆存储库时出现IIS7错误Mercurial
- 14. 使用Mercurial将本地克隆推送到远程存储库
- 15. Mercurial:通过ssh克隆远程存储库时出现错误
- 16. 克隆mercurial存储库到远程机器
- 17. 如何在jenkins中克隆googlecode mercurial存储库
- 18. 将Mercurial存储库克隆到非空目录中
- 19. Github:克隆存储库,更改克隆,并提交原始库
- 20. 什么是将库存储到本地文件系统上的文件夹的Mercurial hg克隆语法
- 21. Mercurial:获取有关存储库的信息而不克隆它们
- 22. 用于克隆的Hg ACL
- 23. 适用于本地存储库的Node.js Mercurial HG库
- 24. 如何将Mercurial存储库克隆到已存在的目录中?
- 25. 使git克隆自己的存储库
- 26. 无需提交的克隆存储库
- 27. 维护git存储库的克隆
- 28. 用于克隆GIT存储库的GUI
- 29. 克隆Git的SVN存储库
- 30. 无法克隆我的Git存储库
你怎么想,这会节省时间的名字呢?对非回购副本是否会做任何更改? –
@Joel B Fant No. – oaziz