nerdexam
Microsoft

GH-900 · Question #113

When creating a repository from a template, what will the new repository contain?

The correct answer is D. default branch. When you create a repository from a template, GitHub copies only the default branch's files and directory structure into the new repository. It does NOT copy commit history (the new repo starts with a single initial commit), pull requests (which are specific to the source…

Working with GitHub Repositories

Question

When creating a repository from a template, what will the new repository contain?

Options

  • Acommit history
  • Bpull requests
  • Ccontributors
  • Ddefault branch

How the community answered

(34 responses)
  • A
    3% (1)
  • B
    9% (3)
  • C
    3% (1)
  • D
    85% (29)

Explanation

When you create a repository from a template, GitHub copies only the default branch's files and directory structure into the new repository. It does NOT copy commit history (the new repo starts with a single initial commit), pull requests (which are specific to the source repo), or contributors (which are tied to the source repo's history). The default branch is the one thing guaranteed to carry over - its name and contents.

Topics

#GitHub templates#Repository creation#Default branch#Repository content

Community Discussion

No community discussion yet for this question.

Full GH-900 Practice