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…
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)- A5% (1)
- B5% (1)
- C90% (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
Community Discussion
No community discussion yet for this question.