Mercurial hg strip 无效命令解决

本文介绍 Mercurial 的 strip 扩展,该扩展提供了 strip 命令,用于从仓库中移除指定的变化集及其后代。文章详细解释了如何启用此扩展,并通过示例展示了如何使用 strip 命令来移除变化集。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Strip Extension

This extension is distributed with Mercurial 2.8 and later. For Mercurial versions older than 2.8, you can get the same functionality by enabling the MqExtension.

Authors: Chris Mason, Pierre-Yves David

 

目录

  1. Overview
  2. Configuration
  3. Usage

 

1. Overview

The strip extension provides the strip command to remove changesets and their descendants from the repository.

 

2. Configuration

Enable the extension by adding the following lines to your .hgrc or Mercurial.ini:

 

[extensions]
strip =

 

3. Usage

To remove a changeset and its descendants from the repository:

 

hg strip <REV>

To remove the working directory's parent from the repository, but keep the changes from that changeset in the working directory:

 

hg strip --keep .

Strip is not a history-rewriting operation and can be used on public changesets.

See strip for more details.

 

CategoryBundledExtension

转载于:https://my.oschina.net/yukong/blog/875995

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值