1.git fetch的基本介绍(git fetch --help)
参考博客:https://www.cnblogs.com/ToDoToTry/p/4095626.html
NAME
git-fetch - Download objects and refs from another repository
SYNOPSIS
git fetch [<options>] [<repository> [<refspec>...]]
git fetch --all [<options>]
OPTIONS
--all
Fetch all remotes.
-f, --force
When git fetch is used with <rbranch>:<lbranch> refspec, it refuses to update the local branch <lbranch> unless the remote branch <rbranch> it fetches is a descendant of <lbranch>. This option overrides that check.
<repository>
The "remote" repository that is the source of a fetch or pull operation. This parameter can be either a URL (see the section GIT URLS below) or the name of a remote (see the section REMOTES below).这里需要注意的是repository就是指远程仓库,既可以是别名(origin或者git remote add所添加的),也可以是URL(git服务器+远程仓库名)
<refspec>
The format of a <refspec> parameter is an optional plus +, followed by the source ref <src>, followed by a colon :, followed by the destination ref <dst>. The remote ref that matches <src> is fetched, and if <dst> is not empty string, the local ref that matches it is fast-forwarded using <