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
26 days agoArt
29 days agoCasie
1 months agoAdria
1 months agoKaycee
2 months agoDulce
3 months agoKrystina
2 months agoNoel
2 months agoCorinne
2 months agoDarnell
3 months agoGeoffrey
3 months agoGeoffrey
3 months agoGlen
3 months agoLoreen
3 months agoCarla
3 months agoKristel
4 months agoOlga
2 months agoNorah
2 months agoRoxane
3 months agoTalia
3 months ago