---
---
Squashing Commits
To combine multiple commits into one (recommended unless your PR covers multiple topics):
In the interactive editor that appears:
Keep the first commit as
pick
Change subsequent commits from
pick
tofixup
(short formf
). You may also choosesquash
(s
), however,fixup
is recommended to keep the commit message clean.Save and close the editor to proceed
Example:
To:
Rebasing onto Upstream Master
To update your branch with the latest changes from upstream:
Troubleshooting
If you encounter issues during rebase:
For merge conflicts during rebase:
Resolve the conflicts in the files
git add
the resolved filesgit rebase --continue