nerdexam
Microsoft

GH-900 · Question #74

What are the two main reasons why one might fork a repository? (Choose two.)

The correct answer is B. To propose changes to the base repository: C. To create a new repository based on an existing one. Forking a repository serves two primary purposes: (B) proposing changes to the base repository - a developer forks a project, makes changes, then submits a pull request back to the original; and (C) creating a new independent repository based on an existing one - used when a…

Collaboration Features

Question

What are the two main reasons why one might fork a repository? (Choose two.)

Options

  • ATo create an issue or open a discussion
  • BTo propose changes to the base repository:
  • CTo create a new repository based on an existing one:
  • DTo create a new branch to develop a new feature

How the community answered

(44 responses)
  • A
    2% (1)
  • B
    95% (42)
  • D
    2% (1)

Explanation

Forking a repository serves two primary purposes: (B) proposing changes to the base repository - a developer forks a project, makes changes, then submits a pull request back to the original; and (C) creating a new independent repository based on an existing one - used when a developer wants to take a project in a new direction (e.g., creating a derivative product). Option A is incorrect because creating issues or discussions does not require forking. Option D describes branching within the same repository, which is a different workflow from forking - branches are used within a repo you already have write access to.

Topics

#Forking#GitHub Repositories#Collaboration#Contribution workflow

Community Discussion

No community discussion yet for this question.

Full GH-900 Practice