nerdexam
Microsoft

GH-900 · Question #112

Which three files can a user automatically add while creating a new repository?

The correct answer is C. README, .gitignore, and LICENSE. When creating a new repository on GitHub, the repository initialization wizard offers three optional files to auto-generate: (1) README - a markdown file describing the project; (2) .gitignore - a file specifying which files and directories Git should ignore, with templates…

Working with GitHub Repositories

Question

Which three files can a user automatically add while creating a new repository?

Options

  • AREADME, .git, and DOCS
  • BLICENSE, .git, and README
  • CREADME, .gitignore, and LICENSE
  • DLICENSE, DOCS, and .gitignore

How the community answered

(40 responses)
  • A
    5% (2)
  • B
    3% (1)
  • C
    90% (36)
  • D
    3% (1)

Explanation

When creating a new repository on GitHub, the repository initialization wizard offers three optional files to auto-generate: (1) README - a markdown file describing the project; (2) .gitignore - a file specifying which files and directories Git should ignore, with templates available for various languages and frameworks; and (3) LICENSE - a legal file defining how others may use the code, selectable from common open-source licenses. The '.git' directory is created automatically by Git itself and is not a user-selectable option.

Topics

#Repository creation#GitHub features#README#.gitignore#LICENSE

Community Discussion

No community discussion yet for this question.

Full GH-900 Practice