🏠 Homepage 🏠 Syllabus of Day 2 ⬅️ Previous: 🔁 Opening a Pull Request (PR)
A collaborator is someone who has been granted direct write access to a repository. Collaborators can push changes, create branches, and merge pull requests without needing to fork the repository.
Once added as a collaborator, you can clone the repository and push changes directly:
git clone git@github.com:owner/repo-name.git
cd repo-name
git clone git@github.com:owner/repo-name.git
cd repo-name
git checkout -b feature/your-feature
git add .
git commit -m "Describe your changes"
git push origin feature/your-feature
Action | Description/Command |
---|---|
Add collaborator | Settings → Collaborators & teams → Add people |
Clone repo | git clone git@github.com:owner/repo-name.git |
Create branch | git checkout -b feature/your-feature |
Push branch | git push origin feature/your-feature |
Tip:
Adding collaborators is best for trusted team members working on private or shared projects.
➡️Up Next: 🔀 Merging the PR into Main