This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Choose the best response for each question.
Which of the following choices is not a good reason to protect a branch?
You want to restrict who can push commits to it.
You want to avoid accidental deletion after a pull request.
The branch contains sensitive information that you don't want other repository participants to be able to see.
Suppose your team repository contains several long-lived branches, including main, release-v1.0, and release-v2.0. Which of the following Git commands best enables you to apply specific commits from main into release-v1.0 to apply hotfixes to the legacy version of the codebase?
main
release-v1.0
release-v2.0
git merge
git cherry-pick
git rebase
Your project team reaches a major milestone and wants everyone to install the latest version of your app. Which option is the best way to let interested users know?
Create a release on GitHub.
Create a Git tag.
Merge the changes into main using a pull request.
You must answer all questions before checking your work.
Was this page helpful?