nerdexam
Microsoft

GH-900 · Question #39

If there are multiple README files, which of the following locations will be displayed first?

The correct answer is C. Root. GitHub uses a priority order when displaying README files on a repository's main page. The (C) root directory has the highest priority and will be displayed first. If no README exists at the root, GitHub then looks in the .github folder (A), followed by the docs folder (D). The…

Introduction to Git and GitHub

Question

If there are multiple README files, which of the following locations will be displayed first?

Options

  • A.github
  • Bsrc
  • CRoot
  • Ddocs

How the community answered

(20 responses)
  • A
    5% (1)
  • B
    5% (1)
  • C
    90% (18)

Explanation

GitHub uses a priority order when displaying README files on a repository's main page. The (C) root directory has the highest priority and will be displayed first. If no README exists at the root, GitHub then looks in the .github folder (A), followed by the docs folder (D). The src directory (B) is not part of GitHub's README lookup hierarchy at all. This means if you have a README in the root and also in .github, only the root README will be shown on the repository homepage.

Topics

#GitHub Repository Structure#README file#Repository Display#File Precedence

Community Discussion

No community discussion yet for this question.

Full GH-900 Practice