Git commits and diffs
Does a commit automatically include the latest edit?
Examples
Worked example
Input
You edit a file after staging it.
Expected output
No.
Hints and solution
Hint 1
Write down the starting state and walk through one example by hand.
Reveal worked answer
Git commits the staged version. Stage the latest changes too if they belong in the commit.