What are the two main reasons why one might fork a repository?
(Each answer presents a complete solution. Choose two.)
Forking a repository on GitHub is a common practice, especially when contributing to open-source projects or when you want to build on existing work. Here are the two main reasons for forking a repository:
B . To propose changes to the base repository:
One of the primary reasons for forking a repository is to make changes or improvements that you can later propose to the original repository (often called the 'upstream' repository). This is typically done through a pull request. By forking the repository, you get your own copy of the project where you can freely experiment, make changes, and then propose those changes back to the original project.
C . To create a new repository based on an existing one:
Forking is also used to create a new repository that is a copy of an existing one. This allows you to work on the project independently of the original repository, effectively creating a new direction for the project or using it as a starting point for a different purpose. This is particularly useful for customization, experimentation, or when you want to build something different while still leveraging the existing codebase.
Explanation of Other Options:
A . To create an issue or open a discussion:
This is incorrect because creating an issue or opening a discussion can be done directly on the original repository without needing to fork it. Forking is unnecessary for these actions.
D . To create a new branch to develop a new feature:
While creating a new branch is related to development, it does not require a fork. Branches are typically created within the same repository to work on new features. Forking is used when you need an entirely separate copy of the repository.
Given this information, the correct answers are B and C.
Aja
2 months agoPeggie
3 days agoArt
6 days agoCasie
9 days agoAdria
15 days agoKaycee
2 months agoDulce
2 months agoKrystina
1 months agoNoel
1 months agoCorinne
1 months agoDarnell
2 months agoGeoffrey
2 months agoGeoffrey
2 months agoGlen
2 months agoLoreen
2 months agoCarla
2 months agoKristel
3 months agoOlga
1 months agoNorah
2 months agoRoxane
2 months agoTalia
2 months ago