Skip to content

Instantly share code, notes, and snippets.

@whatisor
Created July 22, 2022 13:53
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save whatisor/3b6f9d30eee5789f04cd90039163cb84 to your computer and use it in GitHub Desktop.
Save whatisor/3b6f9d30eee5789f04cd90039163cb84 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