------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
pickChange subsequent commits from
picktofixup(short formf). You may also choosesquash(s), however,fixupis 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 addthe resolved filesgit rebase --continue