Once students have completed the three areas, it can be instructive to solve a few transfer questions.
Branching – committing
Rationale |
Example Questions |
- Start with the most recent commit and continue with commits in the history of the branch, given that the recent commits are consulted relatively often compared to analyzing and editing older commits.
|
- How do the different options to restore changes from the last commit (soft/mixed/hard reset, revert) differ?
- How does switch/checkout/reset/revert affect the areas, i.e., the working directory and staging area? Why do we need a clean working directory?
- How can we enter the ‘detached HEAD mode’ and for which purposes could it be useful?
- How can older commits be edited and what is the effect of rewriting history on the following commits?
|