Question: Your current repository has three branches: master, beta, and push-notifications. You have just finished the notification feature and commit the changes to the push-notification branch, and you want to include them in the beta branch. How can you accomplish this?

  1. Check out the beta branch and run git merge push-notifications.
  2. Check out the push-notifications branch and run git merge beta.
  3. Check out the master branch and run git merge beta -> push-notifications.
  4. Delete the push-notifications branch; it will be committed to the master branch automatically.

Answer: The correct answer of the above question is Option A:Check out the beta branch and run git merge push-notifications.