Hello,
For complete GitHub setup instructions, please look into these links:
Your friend would need a github account to access the github repository. The accounts must be connected (guide in the links above).
If he is having difficulty creating a GitHub account, you would need to reach out to GitHub for help, I am not able to support their website.
Once the 12 months is up, he can absolutely carry on with a regular subscription or get a new code.
Let me know if you have any other questions.