Add looping examples in ruby and rebase/undo in git