Use pick and squash to clean up a short history. Practise git rebase -i <branch> in an interactive Git puzzle.
Interactive rebase lets you edit the list of commits before Git replays them.
GitGud runs in your browser and needs JavaScript turned on to play.