Complete the command to reset the last commit but keep changes staged.
git reset --[1] HEAD~1
The soft reset moves HEAD to the previous commit but keeps changes staged for commit.
Complete the command to reset the last commit and unstage changes but keep them in the working directory.
git reset --[1] HEAD~1
The mixed reset moves HEAD and unstages changes but keeps them in your files.
Fix the command to reset the last commit and discard all changes in working directory and index.
git reset --[1] HEAD~1
The hard reset moves HEAD and discards all changes in index and working directory.
Fill both blanks to describe the effect of 'git reset --{{BLANK_1}}' and 'git reset --{{BLANK_2}}'.
git reset --[1] keeps changes staged, git reset --[2] unstages changes but keeps them in working directory.
soft reset keeps changes staged; mixed reset unstages changes but keeps them in files.
Fill all three blanks to complete the dictionary describing reset types and their effects.
reset_effects = { 'soft': 'keeps changes [1]', 'mixed': 'unstages changes but keeps them [2]', 'hard': 'discards changes in [3]' }soft keeps changes staged, mixed unstages but keeps changes in working directory, hard discards changes in index and working directory.