第1步:读取 .git/config
[remote "origin"]
url = https://github.com/kanomoku/testGit.git
fetch = +refs/heads/*:refs/remotes/origin/*
第2步:拉取 远程仓库 的 远程分支 的 最新 Commit-ID 到「.git/FETCH_HEAD」文件中
git fetchgit fetch 会拉取 所有远程仓库 的 所有远程分支 的 最新 Commit-ID 到「.git/FETCH_HEAD」文件中。
若有多个分支则FETCH_HEAD内会有多行数据,首行为 git fetch 时 所在分支 的同名远程分支。

git fetch origingit fetch 会拉取 远程仓库 的 所有远程分支 的 最新 Commit-ID 到「.git/FETCH_HEAD」文件中。
若有多个分支则FETCH_HEAD内会有多行数据,首行为 git fetch 时 所在分支 的同名远程分支。
git fetch origin master 和 git fetch origin test2:test22git fetch origin master 会拉取 远程仓库 的 指定的远程分支 的 最新 Commit-ID 到「.git/FETCH_HEAD」文件中。
FETCH_HEAD内只有1行数据,记录的是 git fetch时 指定的远程分支 的最新 Commit-ID
