Challenge - 5 Problems
Pull Request Pro
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
What is the output of this git command after pushing a branch?
You run the following commands:
What is the typical output message you will see after the push completes successfully?
git checkout -b feature-xyz
git push origin feature-xyz
What is the typical output message you will see after the push completes successfully?
Git
git checkout -b feature-xyz git push origin feature-xyz
Attempts:
2 left
💡 Hint
Think about what git shows when a new branch is pushed to the remote.
✗ Incorrect
When you push a new branch, git shows the progress of objects being sent and confirms the new branch creation on the remote.
🧠 Conceptual
intermediate1:30remaining
What is the main purpose of a pull request in Git workflows?
Choose the best description of why teams use pull requests.
Attempts:
2 left
💡 Hint
Think about collaboration and quality control in teams.
✗ Incorrect
Pull requests allow team members to review code changes, discuss them, and approve before merging to ensure quality and avoid errors.
🔀 Workflow
advanced2:30remaining
What is the correct sequence of commands to create a pull request branch, push it, and open a pull request on GitHub CLI?
Arrange the following commands in the correct order to create a feature branch, push it to origin, and open a pull request using GitHub CLI.
Attempts:
2 left
💡 Hint
Remember you must commit changes before pushing, and open the PR after pushing.
✗ Incorrect
First create and switch to the branch, then add and commit changes, push the branch, then open the pull request.
❓ Troubleshoot
advanced1:30remaining
What error will you see if you try to push a branch without permission to the remote repository?
You run:
but you do not have write access to the remote repo. What error message will git show?
git push origin feature-branch
but you do not have write access to the remote repo. What error message will git show?
Attempts:
2 left
💡 Hint
403 error means forbidden access.
✗ Incorrect
If you lack permission, git returns a 403 HTTP error indicating forbidden access when pushing.
✅ Best Practice
expert2:00remaining
Which option best describes a recommended practice before merging a pull request?
Select the best practice to ensure code quality before merging a pull request into the main branch.
Attempts:
2 left
💡 Hint
Think about quality control and collaboration.
✗ Incorrect
Running tests and peer review help catch bugs and improve code quality before merging.