๐จ Workflow: Working on a local branch, pushing to GitHub, and merging the PR. We want the updates to our main branch, and want to remove the clutter of the old local branch where we did all the work.
๐ Steps:
- Note the current branch
- Note the main branch
- Checkout the main branch
- Pull any updates
- Hard delete the previous branch
๐จ Workflow: We thought we had finished the work and pushed it to GitHub. But then we discover a typo, bug, etc and want to fix it, include it in the last commit and then force push the updates to GitHub.
๐ Steps:
- Add the most recent changes into the last commit cleanly
- Force push to GitHub (
origin
)