gpt4 book ai didi

mercurial - 制作一个没有前缀的 Mercurial 存档

转载 作者:行者123 更新时间:2023-12-02 23:42:06 29 4
gpt4 key购买 nike

也许是个愚蠢的问题,但我的谷歌不起作用。在我的存储库根目录上执行以下操作:

$ hg archive my_archive.tar.gz

给我一​​个 tar.gz 文件,其中包含一个名为 my_archive 的内部目录,然后在我的存储库内容中。

我明白这是 hg arhives 的帮助的意思:

Each member added to an archive file has a directory prefix prepended.

Use -p/--prefix to specify a format string for the prefix. Thedefault is the basename of the archive, with suffixes removed.

但这让我的部署工作流程感到困惑。我需要它而不需要内部目录。

这可能吗?

最佳答案

指定前缀为当前目录:

hg archive -p . my_archive.tar.gz

关于mercurial - 制作一个没有前缀的 Mercurial 存档,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12198881/

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