
Ultimate access to all questions.
You are using Git for version control in a project that involves multiple developers. Which of the following Git commands would you use to create a new branch, update the local repository with changes from the remote repository, and merge a branch back into the main branch?
A
git branch new-feature; git pull origin main; git merge new-feature
B
git checkout -b new-feature; git fetch origin; git merge new-feature
C
git branch new-feature; git pull origin main; git checkout main; git merge new-feature
D
git checkout -b new-feature; git pull origin main; git checkout main; git merge new-feature