Git中提供的fetch指令用于将遠端的更新抓取到本地倉庫中。
1.git fetch <repository> <branchName>
從指定的遠端抓取指定分支的更新。
2.git fetch --all
抓取所有遠端的所有更新。
3.git fetch <repository> <branchName> --prune
抓取前删除遠端上不在跟蹤的引用。
4.git fetch <repository> <branchName> --tags
抓取遠端分支上的所有标簽。
5.git fetch <repository> <branchName> --progress
輸出抓取進度。
6.git fetch <repository> <branchName> --ipv4
使用IPv4位址。忽略IPv6位址。
7.git fetch <repository> <branchName> --ipv6
使用IPv6位址,忽略iPV4位址。