Open the GitHub repository
Click Settings
Click Collaborators and teams or Manage access
Click Add people
Enter the collaborator’s GitHub username, full name, or email
Select the correct user
Choose the permission level
Click Add
Ask the collaborator to accept the invitation
