Can't delete accidental commit on remote git repository
(This might be considered a feature request, but dealing with it sure feels like a bug)
Following is an exact copy of a post made to the forum. Since then I've found that every time I sync my fork to the main repository (all of this on github) and then pull to my local repo. I get new changesets which, along with several others, I want to delete from my github repository. They look something like
| * changeset: 18900:b32da47c387e
|/| tag: default/master
...
| | instability: orphan
| | summary: Merge branch 'vim:master' into master
I don't know git (and I very much thank and appreciate hg-git for that) so I'm hoping at least for some hint on what/how to do what I need.
I did a push to a github repo (a fork) and left out the "-B"; other things were done. I'd like to remove the changesets/commits, 18835 and 18829 (see below), from the github repo. I tried pruning locally, then push the pruned revsets, but no luck. Can't find a way to remove them using the github website.
Is there a way to clean up the github repo using hg-git? If not, any suggestions on something to look at to easily get this done? Can I use "/.hg/git"?
-ernie
o changeset: 18841:76a07b084276
| bookmark: LOCAL_DEBUG_MAKEFILE
| tag: tip
| user: Ernie Rael <errael@raelity.com>
| date: Mon Aug 21 07:16:59 2023 -0700
| summary: LOCAL_DEBUG_MAKEFILE
|
o changeset: 18840:adeb4400a922
| bookmark: MsgVarDefiningClass
| parent: 18834:39523d22b15d
| user: Ernie Rael <errael@raelity.com>
| date: Tue Oct 03 19:38:44 2023 -0700
| summary: Use defining class in variable access error messages.
|
| o changeset: 18837:0e20fc19cb17
|/ bookmark: ForeachExpr1Expr2
| parent: 18834:39523d22b15d
| user: Ernie Rael <errael@raelity.com>
| date: Wed Mar 15 20:14:10 2023 -0700
| summary: Implement foreach({expr1}, {expr2})
|
| x changeset: 18835:0d50de48e9b0
|/| tag: default/master
| | parent: 18829:acb36821c198
| | parent: 18834:39523d22b15d
| | user: errael <errael@raelity.com>
| | date: Thu Oct 05 08:59:56 2023 -0700
| | obsolete: pruned
| | summary: Merge branch 'vim:master' into master
| |
@ | changeset: 18834:39523d22b15d
| | bookmark: real-master
| | user: Christian Brabandt <cb@256bit.org>
| | date: Wed Oct 04 21:58:24 2023 +0200
| | summary: patch 9.0.1984: CI: Test_open_delay*() fails on FreeBSD 14
| |
o | changeset: 18833:56947cb3f4f1
| | user: zeertzjq <zeertzjq@outlook.com>
| | date: Wed Oct 04 21:45:33 2023 +0200
| | summary: patch 9.0.1983: scrolling inactive window not possible with cursorbind
| |
o | changeset: 18832:1d19383b843c
| | parent: 18819:0c8f51a5af44
| | user: yasuda <yasuda@kyoto-sr.co.jp>
| | date: Wed Oct 04 20:50:35 2023 +0200
| | summary: runtime(netrw): error when trying to :bd unloaded buffer
| |
+---x changeset: 18830:3cfde4bbc21e
| | tag: default/MsgVarDefiningClass
| | parent: 18819:0c8f51a5af44
| | user: Ernie Rael <errael@raelity.com>
| | date: Tue Oct 03 19:38:44 2023 -0700
| | obsolete: rewritten using amend, rebase as 18840:adeb4400a922
| | summary: Use defining class in variable access error messages.
| |
| x changeset: 18829:acb36821c198
|/ bookmark: TwoMessages
| tag: default/TwoMessages
| parent: 18819:0c8f51a5af44
| user: Ernie Rael <errael@raelity.com>
| date: Wed Oct 04 19:27:01 2023 -0700
| obsolete: pruned using prune
| summary: Avoid two messages for same error.
|
o changeset: 18819:0c8f51a5af44
| user: Ernie Rael <errael@raelity.com>
| date: Wed Oct 04 20:16:22 2023 +0200
| summary: patch 9.0.1982: vim9: clean up from v9.0.1955