Git & GitHub Interview Question #64
What is GitHub repository visibility?
Undo & Recovery, Tags, Forks, Pull Requests & Code Review Mid-Level Intermediate
Quick Interview Answer
GitHub repositories can have visibility settings that determine who can access them, subject to account and organization capabilities. Public repositories are broadly visible, while private repositories restrict access to authorized users or teams.
Detailed Explanation
GitHub repositories can have visibility settings that determine who can access them, subject to account and organization capabilities. Public repositories are broadly visible, while private repositories restrict access to authorized users or teams.
Visibility is not the same as branch permission. A user who can view a repository does not necessarily have permission to push, administer settings, or merge protected changes.
Code Example
# Visibility is configured on GitHub.
# Git still sees a normal remote URL:
git remote -v