The overall architecture of GIT, as well as the main commands related to each part：
Git fetch does not change the code of the local warehouse, but pulls the remote
commit data and updates the
commit ID of the remote warehouse to
You can check your
.git folder: there are three folders in your
. Git/refs :
They record the latest
commit id of different local and remote repository respectively:
fetch changes the
commit ID of the corresponding branch in
Pull = fetch + merge pull down the remote branch and merge with the local branch.
fetch is just a drop-down of remote branches. You can choose how to merge them.