Skip to content

Instantly share code, notes, and snippets.

View syogaraj's full-sized avatar

Yogaraj.S syogaraj

View GitHub Profile
@syogaraj
syogaraj / signoff a pushed commit.md
Created April 5, 2023 02:54
How to signoff a pushed commit
  1. Run git log to find the commit hash of the commit you want to sign off.

  2. Use the git rebase -i command to interactively rebase the commit. Replace COMMIT_HASH with the commit hash you identified:

    git rebase -i COMMIT_HASH^

    This will open an editor with a list of commits, starting from the one you specified.

  3. In the editor, change the keyword pick to edit for the commit you want to sign off, save the changes, and close the editor.