Git - fetch拉取

116 阅读1分钟

fetch 从一个或多个远程拉取内容或标签(引用)到HEAD所在分支。仅仅拉取内容,不做合并操作,如果远程有新的分支,可以使用fetch指令获取

git fetch 格式参考

git fetch [<options>] [<repository> [<refspec>…​]]
git fetch [<options>] <group>
git fetch --multiple [<options>] [(<repository> | <group>)…​]
git fetch --all [<options>]

1.1 git fetch

从单个远程拉取内容和标签到HEAD所在分支