Skip to content

Instantly share code, notes, and snippets.

@galliani
Forked from whatisor/resign-old-commits
Created June 26, 2023 18:24
Show Gist options
  • Save galliani/89e077336d343e8b10e0063de8411394 to your computer and use it in GitHub Desktop.
Save galliani/89e077336d343e8b10e0063de8411394 to your computer and use it in GitHub Desktop.
Resign old commits
1. Find your good commit id : git log
2. git rebase --exec 'git commit --amend --no-edit -n -S' -i <your latest good commit id>
3. just save and quit when prompted
4. git push origin <branch name> --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment