The problem is that committing to the main branch every day makes the history messy, but commits made in other branches do not appear in the GitHub contribution graph (the green boxes).
What can I do so that my daily contributions count in the contribution graph, while keeping only the important milestone commits on the main branch?