For GitHub, I guess you just add contributors. As for Itch.io, one of you can submit the game(or a placeholder) and then go under edit game -> more -> admins and add the usernames of your teammates. Yes, all members need an Itch.io account for them to be added.
Alternatively, you could just list your teammates on the game's page.