Signal boosting the excellent blog post and talk "Free Software Needs Free Tools" by Benjamin Mako Hill in which he gives the story of how git was created.

I agree with most if not all his recommendations following the story. Personally, I have been paying for a sourcehut membership for a while now and this story is the reason I continuously renew my paid account (aside from the fact sourcehut is amazing to develop on).