nerdexam
Microsoft

GH-900 · Question #86

Which of the following describes a branch in Git?

The correct answer is C. A separate, isolated copy of the project's codebase. A branch in Git is best described as a separate, isolated line of development - effectively a copy of the codebase at the point it was branched - allowing changes to be made independently without affecting other branches. Option A is closer to describing a tag, which points to…

Introduction to Git and GitHub

Question

Which of the following describes a branch in Git?

Options

  • AA pointer to an identical snapshot of the project at a specific point in time
  • BA physical copy of the entire project stored on disk
  • CA separate, isolated copy of the project's codebase
  • DA new repository that shares code with the original "upstream" repository

How the community answered

(24 responses)
  • A
    4% (1)
  • C
    92% (22)
  • D
    4% (1)

Explanation

A branch in Git is best described as a separate, isolated line of development - effectively a copy of the codebase at the point it was branched - allowing changes to be made independently without affecting other branches. Option A is closer to describing a tag, which points to a specific commit snapshot. Option B is incorrect because Git uses efficient delta storage, not physical full copies on disk per branch. Option D describes a fork, which is a separate repository that shares history with the original upstream repository.

Topics

#Git branching#Version control concepts#Git basics#Branch definition

Community Discussion

No community discussion yet for this question.

Full GH-900 Practice