How do you pull changes from a remote repository and merge them into your local branch?
a)
git fetchb)
git pullc)
git merged)
git checkoutAnswer:
b)
git pullExplanation:
The git pull command is used to fetch changes from a remote repository and automatically merge them into your local branch. It combines the functionality of git fetch and git merge in a single step.
For example, git pull origin main will pull the latest changes from the main branch of the origin remote repository and merge them into your local branch.
Using git pull ensures that your local branch stays up-to-date with the remote repository, especially when working collaboratively on shared projects.