Skip to content

Document a rollback recipe for a graft that was already pushed #11

Description

@achedon12

The backup tag covers the local case, and docs/cli.md says so. It does not cover the case where the graft was pushed and something turned out wrong afterwards — which is when people actually panic.

What this needs

A short section in docs/cli.md (or its own page) covering:

  • Reverting the range with git revert --no-commit <startSha>..HEAD, and why that is preferable to a force-push on a shared branch.
  • What happens to the Regraft-source trailer when you revert: the trailer is still in history, so the next status believes those commits are applied. Reverting the content does not undo the record. The fix is regraft apply --from <sha> to force the starting point back.

That second point is the one nobody guesses, and it is the reason this issue is worth writing rather than assuming people know.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationDocs, examples and error messagesgood first issueSelf-contained, and a good way in

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions