Skip to content

Instantly share code, notes, and snippets.

@claide
Created November 21, 2025 06:39
Show Gist options
  • Select an option

  • Save claide/21f01447e36c8d29702f5d7ef01da541 to your computer and use it in GitHub Desktop.

Select an option

Save claide/21f01447e36c8d29702f5d7ef01da541 to your computer and use it in GitHub Desktop.
How to change a commit that failed from the commitlint test
1. Run `git commit --amend`
2. Change message and save it with correct rules like: feat(GEEK-7789): add ab test for the photo encouragement feature
3. After saving, don't pull since the previous commit is faulty and it will break the new one.
4. Run `git push --force-with-lease`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment