benthayer / git-gud

Wanna git gud? Then get git-gud, and git gud at git!
MIT License
414 stars 43 forks source link

Level: Rewriting History 8 - "A Backwards Level" #263

Open benthayer opened 4 years ago

benthayer commented 4 years ago

Using git rebase multiple times, make the commit messages say "This level has to be done in reverse order"

Branches would be as follows, with each word being its own commit, and with the branch in parenthesis:

This level (master)
This has to be (hasto)
This done (done)
This in reverse order (reverse)

git gud status (after interactive rebase)

======= Simulating: git log --oneline --reverse
This
level
has
to
be
done
in
reverse
order
<<<<<<<
benthayer commented 4 years ago

It doesn't matter what happens to the other branches, we just want master to have the full sentence at the end of the level