Update the commit for the pull request in a repository for OCA Run recommit to remove unnecessary modules import and to generate the README file: pre-commit run -a or pre-commit run --all-files Then, git add . Then, git commit --amend Then, git push --force
How to combine the last two commits into a single one in Git If you want to squash the last two commits into one without changing the commit message, you can follow these steps: Steps to Squash the Last Two Commits Without Changing the Commit Message Start an Interactive Rebase: Use the git rebase -i command to start an interactive rebase for the last two commits: git rebase -i HEAD~2 Edit the Rebase File: In the text editor that opens, you’ll see something like this: pick a1b2c3 First commit message pick d4e5f6 Second commit message Change the second pick to squash (or s) to indicate you want to squash it into the first commit: pick a1b2c3 First commit message squash d4e5f6 Second commit message Save and Close the Editor: After making the change, save and close the editor. Keep the Commit Message: When Git opens another editor for the commit message, it will show you both commit messages. You can simply delete the second commit message and leave the first one as is, or you can keep