Git命令集十四——抓取命令
Git中提供的fetch命令用於將遠端的更新抓取到本地倉庫中。git
1.git fetch <repository> <branchName>
從指定的遠端抓取指定分支的更新。fetch
2.git fetch --all
抓取全部遠端的全部更新。spa
3.git fetch <repository> <branchName> --prune
抓取前刪除遠程上不在跟蹤的引用。ip
4.git fetch <repository> <branchName> --tags
抓取遠程分支上的全部標籤。it
5.git fetch <repository> <branchName> --progress
輸出抓取進度。引用
6.git fetch <repository> <branchName> --ipv4
使用IPv4地址。忽略IPv6地址。標籤
7.git fetch <repository> <branchName> --ipv6
使用IPv6地址,忽略iPV4地址。遠程