Extenza-Academy / WebDev-100_2021-Q1

24 Lessons, 12 Weeks, Get Started as a Web Developer
2 stars 0 forks source link

1.2.4. Post-Lecture Quiz #12

Closed dev-experience closed 3 years ago

dev-experience commented 3 years ago

Post-Lecture Quiz

Complete this quiz by checking one answer per question.

  1. A place to compare and discuss the differences introduced on a branch with reviews, comments, integrated tests, and more is:
  1. How would you get all the commits from a remote branch?
  1. How do you switch to a branch?
dev-experience commented 3 years ago

@mserykh, what git pull does?

mserykh commented 3 years ago

@mserykh, what git pull does?

@dev-experience git pull will update the local current (turned out it is Head) branch with latest remote changes.

I would like to add that I have changed my answer to the q.2. I picked both fetch and pull as they both get data from a remote repo.

dev-experience commented 3 years ago

To be precise, git pull is just combination of git fetch and git merge. And git fetch gets all the commits. So, both of them get commits from a remote branch.

https://git-scm.com/docs/git-pull