When you're invited to complete a DevSkills assignment, your account is added as a collaborator to the corresponding GitHub repository. So as long as your local machine is configured for your GitHub account it should work.

There are two main ways to accomplish this, the first is authenticating with SSH - you can read GitHub’s articles to help you with setting this up.

The second way is using HTTPS and providing your username and password in the URL. For example if I was cloning a public repository I might use:

git clone <https://github.com/strafe/project.git>

but if the repository was private then I’d use:

git clone <https://strafe:[email protected]/strafe/project.git>

Please note if you use 2FA to secure your GitHub account then you’ll need to use a personal access token instead of your password, this article explains how to.