在Mercurial中回滚多个提交(在公开之前) [英] Rollback multiple commits (before Pushed to public) in Mercurial

查看:76
本文介绍了在Mercurial中回滚多个提交(在公开之前)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道回滚可以从本地存储库中的最新变更集中删除提交.但是,是否可以删除自上次推送以来的所有最新提交,而不必重新克隆共享存储库?

I am aware that rollbacks can remove commits from the latest changeset in a local repository. However, is it possible to remove all the latest commits since the previous push without having to re-clone the share repository?

推荐答案

您可以使用 hg clone :

You could make a new repo with hg clone:

hg clone -r last_good_changeset localrepo newlocalrepo

这篇关于在Mercurial中回滚多个提交(在公开之前)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆