0
0
Gitdevops~5 mins

Fork and pull request workflow in Git - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a fork in GitHub?
A fork is a personal copy of someone else's repository. It lets you freely make changes without affecting the original project.
Click to reveal answer
beginner
What is a pull request?
A pull request is a way to ask the original project owner to review and merge your changes from your fork into their repository.
Click to reveal answer
intermediate
Why do we use forks and pull requests instead of pushing directly to the main repository?
Forks and pull requests keep the main project safe. They let others review your changes before adding them, preventing mistakes or unwanted code.
Click to reveal answer
beginner
What is the typical first step after forking a repository?
Clone your fork to your local computer so you can work on the code using Git commands.
Click to reveal answer
beginner
What happens after you create a pull request?
The project maintainers review your changes. They may ask for improvements or approve and merge your code into the main project.
Click to reveal answer
What does a fork create in GitHub?
AA new branch in the original repository
BA backup of your local files
CA personal copy of a repository
DA pull request
What is the main purpose of a pull request?
ATo clone a repository
BTo request merging your changes into the original repository
CTo delete a branch
DTo create a new repository
Which step comes first in the fork and pull request workflow?
ACreate a pull request
BReview code
CMerge changes
DFork the repository
Why is it important to work on a fork instead of the original repository?
ATo avoid affecting the original project directly
BTo delete the original project
CTo speed up cloning
DTo create a backup
What do maintainers usually do after receiving a pull request?
AReview and decide to merge or request changes
BDelete the fork
CClone the fork
DCreate a new branch
Explain the fork and pull request workflow from start to finish.
Think about the steps you take to contribute to a project you don't own.
You got /6 concepts.
    Why is the fork and pull request workflow important for collaboration?
    Consider how teams avoid mistakes and keep projects organized.
    You got /5 concepts.