Follow the guide Git provides for contributing to itself! It's there in the source distribution, though I don't think the man pages.