Scenario:
- Let's say the PR you created in the previous exercise was integrated into
main
branch. - But...with a few modifications to the button styling.
- The rolling Rick feature branch you're working on has the "old" styling.
- Going forward you want the updated styling from
main
branch.
Instructions for exercise:
- Checkout branch
start
. - Create a new branch
exercise
. - Have a look at the commits in
solution
branch. - Rebase
exercise
onmain
branch. - During the rebase process, drop the commit with the old button styling.
Tips:
- Rebase the
exercise
branch. - Use a GUI client such as GitExtensions (Win), Fork (Mac + Win) or GitKraken (Linux, Mac, Win) so that you don't have to figure out the git cli commands for doing the above.
- I've written a bit about dropping commits using GitExtensions on my blog