在git中,有一个命令'git bundle',它将git存储库捆绑到一个大文件中。 是否有'hg'的等效命令?hg git命令包
0
A
回答
4
Hg支持相同的命令。以下是对它的帮助:
U:\>hg help bundle hg bundle [-f] [-t TYPE] [-a] [-r REV]... [--base REV]... FILE [DEST] create a changegroup file Generate a compressed changegroup file collecting changesets not known to be in another repository. If you omit the destination repository, then hg assumes the destination will have all the nodes you specify with --base parameters. To create a bundle containing all changesets, use -a/--all (or --base null). You can change compression method with the -t/--type option. The available compression methods are: none, bzip2, and gzip (by default, bundles are compressed using bzip2). The bundle file can then be transferred using conventional means and applied to another repository with the unbundle or pull command. This is useful when direct push and pull are not available or when exporting an entire repository is undesirable. Applying bundles preserves all changeset contents including permissions, copy/rename information, and revision history. options: -f --force run even when the destination is unrelated -r --rev a changeset intended to be added to the destination -b --branch a specific branch you would like to bundle --base a base changeset assumed to be available at the destination -a --all bundle all changesets in the repository -t --type bundle compression type to use (default: bzip2) -e --ssh specify ssh command to use --remotecmd specify hg command to run on the remote side
反向操作的命令是hg unbundle。
+1
以下是完整文档中的链接。 http://www.selenic.com/mercurial/hg.1.html#bundle – 2010-04-19 20:15:59
+1
是的,它在Mercurial中有相同的名字...这不是巧合,因为Git从Mercurial获得了它的包命令:-) – 2010-05-26 11:00:49
相关问题
- 1. hg命令未知错误
- 2. hg:未知命令'qimportbz'
- 3. 是否有Git命令导入hg存储库
- 4. 的Git命令
- 5. Git commit命令
- 6. hg命令在hg获取之前查看变更集
- 7. Windows TeamCity中的HG命令路径
- 8. Mercurial hg serve命令的问题
- 9. git-svn不是git命令?
- 10. git submodule from Hg repo?
- 11. Git命令一览
- 12. Git推送命令
- 13. GIT命令问题
- 14. 运行git命令
- 15. GIT commit命令相当于SVN命令
- 16. Git flow命令错误:'flow'不是git命令
- 17. git分支在hg subrepo
- 18. hg-git安装:缺少dulwich.errors
- 19. git相当于hg -R?
- 20. git相当于'hg serve'?
- 21. git相当于hg mq?
- 22. git相当于'hg share'?
- 23. 与'git rm --cached`是`hg forget`?
- 24. hg等效的git笔记
- 25. Posh-Git和Posh-Hg一起?
- 26. git-flow与普通的git命令
- 27. 命令git分支svn-git on cygwin
- 28. 如何在Git中混淆git命令?
- 29. Git使用--work-tree和--git-dir命令
- 30. 的Git从“git的差异”命令
在你问这个问题之前你做过什么研究?我在问这个,因为我很困惑你为什么在命名相同的时候没有在Mercurial中找到命令?如果您可以编写[email protected]并指出我们需要改进文档的位置,这将对我们有所帮助。谢谢。 – 2010-05-26 10:59:31