Skip to content

Add git rebase -i [SHA1] example. #1247

Closed
@HonkingGoose

Description

@HonkingGoose

Which version of the book is affected?

Problem is present in source and online books.

Describe the bug:

The book does not explain how to select the correct SHA1 commit to start a rebase operation on. The book has no example for the git rebase -i [sha1 of specific commit] command.

Steps to reproduce:

  1. Go to https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History or https://git-scm.com/book/en/v2/Git-Branching-Rebasing.
  2. Neither of them mention the git rebase -i [sha1 of specific commit] command.
  3. Reader is not sure how to select the correct commit hash to start rebasing on.

Expected behavior:

  1. Book contains a section on the git rebase -i [sha1 of specific commit] command.
  2. Book explains how to select the correct starting hash to rebase on.
  3. Book gives a guided example like the ones used for git rebase -i HEAD~3.
  4. Book explains methodology behing selecting the correct commit to rebase from.

Screenshots:

Additional context:

The git documentation(https://git-scm.com/docs/git-rebase#_interactive_mode) has some guidance:

Start it with the last commit you want to retain as-is:

git rebase -i <after-this-commit>

Desktop:

  • Operating system: Ubuntu 18.04.2 LTS
  • Browser/application: Firefox
  • Browser/application version: 66.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions