Skip to content

Instantly share code, notes, and snippets.

@kwk
Created October 1, 2014 13:52
Show Gist options
  • Select an option

  • Save kwk/d70f20d17b18c4f3296d to your computer and use it in GitHub Desktop.

Select an option

Save kwk/d70f20d17b18c4f3296d to your computer and use it in GitHub Desktop.

Revisions

  1. kwk revised this gist Oct 1, 2014. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -8,4 +8,6 @@ To sign-off the last two commits.

    Then force to push them to the remote repo with the `-f` option:

    git push -f origin
    git push -f origin

    (Source: http://stackoverflow.com/questions/13043357/git-sign-off-previous-commits)
  2. kwk created this gist Oct 1, 2014.
    11 changes: 11 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    No problem,

    run

    git filter-branch --msg-filter "cat - && echo && echo 'Signed-off-by: Your Name <[email protected]>'" HEAD~2..HEAD

    To sign-off the last two commits.

    Then force to push them to the remote repo with the `-f` option:

    git push -f origin