To add collaborators to a repository on GitHub, follow these steps:
- Go to the repository where you want to add collaborators.
- Click on the 'Settings' tab at the top right of the repository page.
- In the left sidebar, click on 'Collaborators' button.
- Github will ask you to confirm your Github password by entering your password and clicking the 'Confirm' button.
- Click on the 'Add people' button.
- Enter the GitHub username, full name, or email of the person you want to add.
- Click 'Add' and the user will receive an invitation to accept.
- The invitee will need to accept the invitation to become a collaborator.