oaz*_*ziz 17 version-control mercurial
如何在没有.hg文件夹的情况下克隆Mercurial存储库以节省时间(项目很大)?我只需要提示文件.
Joh*_*lph 24
该.hg目录用于存储完整的存储库信息.也就是说,有关存储库跟踪的所有文件及其修订的信息.至于存储,它通常是非常有效的,因为它是使用二进制差分压缩.
克隆存储库时,唯一克隆的是.hg目录.从中检索克隆后将获得的工作副本.hg.
如果您要存储的只是存储库信息(例如在服务器上),则可以删除工作副本hg update null.
如果要在没有修订信息的情况下创建存储库的克隆,可以使用该hg archive命令(请参阅下面的参考资料).请注意,此副本只是一个"工作副本"(使用一些常见的svn术语).你不能提交,也不能做任何其他善变操作.
hg archive [OPTION] ... DEST
创建存储库修订版的无版本存档
Run Code Online (Sandbox Code Playgroud)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.选项:
Run Code Online (Sandbox Code Playgroud)--no-decode do not pass files through decoders -p --prefix存档中文件的目录前缀-r --rev要分发的修订版-t - 要创建的分配类型--I - 包含与给定模式匹配的名称-X --exclude与给定模式匹配的排除名称
| 归档时间: |
|
| 查看次数: |
5206 次 |
| 最近记录: |