GH-900 ยท Repositories
Branches and organizing a repository
Default branch, creating and managing branches in GitHub, topics and descriptions that organize and describe repositories.
Key points
- The default branch is what visitors see first and the usual base for new pull requests.
- Extra branches isolate work.
- A short description and topics (lowercase letters, numbers and dashes, up to 50 characters each, at most 20 per repo) make a repository easier to understand and find.
Practice questions
Which repository field shows a one-line summary directly under the repository name?
- Description
- Default branch
- CODEOWNERS
- Topics
Show answer
Answer: A. Description
The description is a short summary of the repository. Topics are clickable tags, the README is a full document, and the default branch is a branch name.
Which rules apply to repository topics?
- Only lowercase letters, numbers and dashes are allowed
- Each topic can be up to 50 characters
- A repository can have at most 20 topics
- Topics on a private repository stay hidden from everyone
- Uppercase letters and spaces are allowed
Show answer
Answer: A. Only lowercase letters, numbers and dashes are allowed, B. Each topic can be up to 50 characters, C. A repository can have at most 20 topics
Topics allow lowercase letters, numbers and dashes, up to 50 characters each and at most 20 per repository. Topic names are public even when added in a private repository.
True or false: a repository can have an unlimited number of topics.
Show answer
Answer: False
False. A repository can have no more than 20 topics.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
