Recommit changes on latest main

The git log in the own branch can get quite messy sometimes. It’s a good idea to clean that up, before creating a Pull Request. The following workflow allows you to reset all commits in the current branch, so you can commit them again (in a single commit or split into multiple clean commits).

1.) Update local main to match remote:

git fetch origin

2.) Reset all commits in the current branch:

git reset --soft main

3.) Re-do commits in clean way:

4.) Force push to remote:

git push -f