What is the command to fetch changes from a remote repository without merging them?
a)
git pullb)
git fetchc)
git merged)
git updateAnswer:
b)
git fetchExplanation:
The git fetch command retrieves updates from a remote repository but does not automatically merge them into your working directory. This allows you to review the changes before deciding whether to merge them into your branch.
After fetching changes, you can use git merge to integrate the fetched changes into your local branch. This is useful for safely incorporating updates without automatically applying them.
Using git fetch gives you more control over the update process, especially when working on critical code that requires careful review before merging.