What is the main difference between git fetch and git pull?
- git fetch only downloads changes, git pull downloads changes and updates the local branch
- git fetch updates the local branch, git pull only downloads changes
- Both commands are the same
- git fetch is used for remote repositories, git pull is used for local repositories
The correct option is A. git fetch only downloads changes from the remote repository but does not automatically update the local branch. On the other hand, git pull downloads changes and updates the local branch.
Loading...
Related Quiz
- What impact does Git have on continuous integration and continuous deployment in Agile teams?
- What is a common feature offered by cloud platforms like GitHub, GitLab, and Bitbucket?
- In the Gitflow workflow, the ________ branch contains the official release history.
- Which Git command is typically used to upload your local repository to a cloud platform?
- What is a unique feature of GitLab compared to GitHub and Bitbucket?