hg-git icon indicating copy to clipboard operation
hg-git copied to clipboard

"abort: pushing refs/heads/master overwrites X" after moving the master bookmark to an older changeset

Open elifarley opened this issue 9 years ago • 2 comments

Since "hg strip" currently doesn't play well with hg-git, I've tried a hack to get rid of some changesets:

After pushing my changesets to Github, I moved my local Hg repo's master bookmark to the first changeset (-r 0) and tried "hg push -B master", hoping that all changesets after that would be garbage collected by Github.

Here's the error message I got: abort: pushing refs/heads/master overwrites caf2bae34c4f

elifarley avatar May 08 '15 14:05 elifarley

I just got this one myself, but I have no idea how I did it. I didn't run strip, although I did perform a rebase. Could that have caused it?

moswald avatar Aug 31 '15 17:08 moswald

The solution from here worked for me http://stackoverflow.com/questions/14175561/hg-git-stopped-working-for-multiple-branches

ellwoods avatar Mar 06 '17 16:03 ellwoods