Introducing /git-gardening

1 min read
Published

/git-gardening is a skill that turns a messy git history into a clear narrative.

Download /git-gardening at https://github.com/thehale/skills

Building useful functionality usually involves a lot of trial and error. For folks like me who commit in small steps along the way, the resulting history is a messy pile of commits with interlocking/inter-reverting changes that are worse than useless in a git blame scenario.

So, I had developed the habit of doing detailed interactive rebases to organize the commits on my branch into a clear, pedagogical narrative of independently deployable changes. /git-gardening is the skill that allows the bots to automate that same process. It pairs closely with /commit.

/git-gardening defaults to collaborating with you on the narrative structure of the branch, but it can also operate fully autonomously.

It’s how I’ve been shipping beautiful branches for the last several months internally at 37signals. I hope you like it too!