Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

GitHub Exam GitHub-Foundations Topic 6 Question 6 Discussion

Actual exam question for GitHub's GitHub Foundations Exam exam
Question #: 6
Topic #: 6
[All GitHub Foundations Exam Questions]

What are the two main reasons why one might fork a repository?

(Each answer presents a complete solution. Choose two.)

Show Suggested Answer Hide Answer
Suggested Answer: B, C

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.


GitHub Documentation: Fork a repo

GitHub Documentation: About forks

Contribute your Thoughts:

Aja
10 days ago
Wait, is this a trick question? I feel like the answer is so obvious, it has to be a trap. Anyway, I'm going with B and C. Forking is for proposing changes and creating new repos. Simple as that.
upvoted 0 times
...
Kaycee
14 days ago
I'm pretty sure the correct answers are B and C. Forking is about proposing changes and creating a new repo. That's how you collaborate and contribute to open-source projects, right?
upvoted 0 times
...
Dulce
17 days ago
Haha, I love these questions! Obviously, the right answers are C and D. Forking is all about creating a new repo and a new branch. Easy peasy!
upvoted 0 times
...
Darnell
21 days ago
I also believe that forking a repository can be useful for creating a new repository based on an existing one, in addition to proposing changes and developing new features.
upvoted 0 times
...
Geoffrey
23 days ago
I agree with Geoffrey. Forking a repository allows you to work on changes without affecting the original repository and to experiment with new features in a separate branch.
upvoted 0 times
...
Geoffrey
26 days ago
I think the main reasons to fork a repository are to propose changes to the base repository and to create a new branch for developing a new feature.
upvoted 0 times
...
Glen
1 months ago
Hmm, this is tricky. I think the correct answers are B and D. You fork to propose changes and to create a new branch for a new feature. That's what I learned, at least.
upvoted 0 times
Loreen
27 days ago
Yes, forking allows you to make changes to the base repository and work on new features in a separate branch.
upvoted 0 times
...
Carla
30 days ago
I think you're right, forking is mainly to propose changes and develop new features.
upvoted 0 times
...
...
Kristel
2 months ago
I'm pretty sure the answer is B and C. Forking a repo allows you to propose changes and create a new repository based on an existing one. That's the whole point of forking, isn't it?
upvoted 0 times
Olga
7 days ago
No, forking is mainly for proposing changes and creating a new repository based on an existing one.
upvoted 0 times
...
Norah
8 days ago
So, forking is not just about creating an issue or opening a discussion?
upvoted 0 times
...
Roxane
23 days ago
Yes, that's correct. It allows you to make changes to the base repository and create a new one.
upvoted 0 times
...
Talia
29 days ago
I think you're right. Forking a repo is for proposing changes and creating a new repository.
upvoted 0 times
...
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77