Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Question 21 4 pts What is the difference between \"fetch\" and \"pull\" using Gi

ID: 3744165 • Letter: Q

Question

Question 21 4 pts What is the difference between "fetch" and "pull" using Git and GitHub (Select all that apply) ? Fetch never changes any of your local branches and is safe to do without changing your working copy Fetch and Push are the same, there are no differences. A git pull does a git fetch followed by a git merge Pull gets changes without merging them Pull gets the changes and merges them Fetch gets changes without merging them A git fetch does a git pull followed by a git merge Fetch gets the changes and merges them Pull never changes any of your local branches and is safe to do without changing your working copy

Explanation / Answer

We can perform git fetch to update remote-tracking branches. When we use pull git automatically tries to work automatically. It is context sensitive so git merge any pullled commits into branch. pull automatically merges the commit without letting to review them.
When we tries to fetch, Git gathers commits from target branch that is not existing in our branch and stores them in local repository. To integrate the commits into our master branch, we use merge.
Hence option 1st, 3rd and 6th options are correct. As fetch never make changes in any of our local branches and it is very safe without altering your working directory.


*If you have any problem with the answer or want me to edit the answer just let me know in the comments and i will try to get on it as soon as possible. Do give a plus if this answer helps.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote