0
0
Gitdevops~5 mins

Pull request process in Git - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a pull request in Git?
A pull request is a way to ask to merge your code changes from one branch into another, usually from a feature branch into the main branch. It lets others review your changes before adding them.
Click to reveal answer
beginner
Why do teams use pull requests?
Teams use pull requests to review code, catch mistakes early, discuss improvements, and keep the main code safe and clean.
Click to reveal answer
beginner
What are the typical steps in a pull request process?
1. Create a feature branch and make changes.<br>2. Push the branch to the remote repository.<br>3. Open a pull request to merge changes.<br>4. Team reviews the code.<br>5. Address feedback and update the pull request.<br>6. Merge the pull request when approved.
Click to reveal answer
intermediate
What happens if reviewers request changes on a pull request?
You update your code on the same branch, push the changes, and the pull request updates automatically. Reviewers then check the new changes.
Click to reveal answer
beginner
What is the difference between merging and closing a pull request?
Merging adds your changes to the target branch. Closing without merging means your changes are not added and the pull request is discarded.
Click to reveal answer
What is the first step to start a pull request?
ACreate a feature branch and make changes
BMerge the main branch
CDelete the repository
DClose an existing pull request
Who usually reviews a pull request?
ARandom internet users
BTeam members or collaborators
COnly the person who created it
DThe operating system
What should you do if your pull request gets feedback requesting changes?
ACreate a new repository
BDelete your branch immediately
CUpdate your code and push changes to the same branch
DIgnore the feedback
What does merging a pull request do?
ADeletes your feature branch
BCreates a new branch
CCloses the repository
DAdds your changes to the target branch
What happens if you close a pull request without merging?
AYour changes are not added to the target branch
BYour changes are merged automatically
CYour branch is deleted
DThe repository is archived
Explain the pull request process from creating a branch to merging changes.
Think about the steps you take to safely add your code to the main project.
You got /7 concepts.
    Why is code review important in the pull request process?
    Consider how teamwork helps make better software.
    You got /4 concepts.