Bitzu

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.

Source: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/classifying-your-repository-with-topics

Practice questions

Single choice

Which repository field shows a one-line summary directly under the repository name?

  1. Description
  2. Default branch
  3. CODEOWNERS
  4. 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.

Select all that apply

Which rules apply to repository topics?

  1. Only lowercase letters, numbers and dashes are allowed
  2. Each topic can be up to 50 characters
  3. A repository can have at most 20 topics
  4. Topics on a private repository stay hidden from everyone
  5. 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

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.

Download on the App StoreGet it on Google Play

More GH-900 topics in this module