Closed dev-experience closed 3 years ago
@mserykh, what git pull
does?
@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.
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.
Post-Lecture Quiz
Complete this quiz by checking one answer per question.
git fetch
git pull
git commits -r
git switch [branch-name]
git checkout [branch-name]
git load [branch-name]