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…
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)- A3% (1)
- B9% (3)
- C3% (1)
- D85% (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
Community Discussion
No community discussion yet for this question.