git-learning-game / oh-my-git

An interactive Git learning game!
https://ohmygit.org
Other
1.98k stars 143 forks source link

git --amend not handled gracefully #168

Open lkrnrw opened 1 year ago

lkrnrw commented 1 year ago
  1. open level "Moving through time"
  2. checkout HEAD at node "Little sister does something"
  3. edit file "piggy_bank", replace "It is empty" by "It contains 10 coins"
  4. commit piggy_bank with message "restore sisterly peace"
  5. realize that little_sister still "has 10 coins", delete that line in file "little_sister"
  6. type "git commit little_sister --amend" in command line
  7. leave message "restore peace" and save commit message

UI shows bifurcation of commits, both with message "restore peace". Expected behaviour (to my mind) would be leaving the structure of commits untouched.