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地址。远程