BlackFriday 2024! 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
Question #: 6
Topic #: 6
[All GitHub-Foundations 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
2 months 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
Peggie
3 days ago
User4: So, it seems like the answer is B and C then. Forking serves those two main purposes.
upvoted 0 times
...
Art
6 days ago
User3: I agree with both of you. Forking is definitely for proposing changes and creating new repos.
upvoted 0 times
...
Casie
9 days ago
User2: Yeah, that's one reason. I believe it's also for creating a new repository based on an existing one.
upvoted 0 times
...
Adria
15 days ago
I think forking is mainly for proposing changes to the base repository.
upvoted 0 times
...
...
Kaycee
2 months 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
2 months 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
Krystina
1 months ago
It's important to understand the purpose of forking before doing it.
upvoted 0 times
...
Noel
1 months ago
Definitely, those are the main reasons for forking a repository.
upvoted 0 times
...
Corinne
1 months ago
I agree, forking is all about creating a new repo and a new branch.
upvoted 0 times
...
...
Darnell
2 months 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
2 months 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
2 months 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
2 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
2 months 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
2 months ago
I think you're right, forking is mainly to propose changes and develop new features.
upvoted 0 times
...
...
Kristel
3 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
1 months ago
No, forking is mainly for proposing changes and creating a new repository based on an existing one.
upvoted 0 times
...
Norah
2 months ago
So, forking is not just about creating an issue or opening a discussion?
upvoted 0 times
...
Roxane
2 months ago
Yes, that's correct. It allows you to make changes to the base repository and create a new one.
upvoted 0 times
...
Talia
2 months ago
I think you're right. Forking a repo is for proposing changes and creating a new repository.
upvoted 0 times
...
...

Save Cancel