Git 命令 - 本地存储库与远程存储库
Git Commands - Local Repository vs. Remote Repository
哪些命令只能用于远程 Git 存储库但不能用于本地 Git 存储库,反之亦然?
大多数 Git 命令(实际上几乎所有命令)仅用于本地存储库,以最大限度地减少延迟。
其中一些使用远程存储库以及本地存储库:
git clone
git pull
git push
git fetch
git ls-remote
git remote prune/update
我脑子里没有一个 git 命令可以专门与远程命令一起使用,如果远程是指 "outside of your local computer".
上述每个命令都与一个 "remote" 存储库一起工作,该存储库就在您的硬盘上。
可以说,git remote-helpers
用于与通常托管在本地计算机之外的存储库进行通信。
哪些命令只能用于远程 Git 存储库但不能用于本地 Git 存储库,反之亦然?
大多数 Git 命令(实际上几乎所有命令)仅用于本地存储库,以最大限度地减少延迟。
其中一些使用远程存储库以及本地存储库:
git clone
git pull
git push
git fetch
git ls-remote
git remote prune/update
我脑子里没有一个 git 命令可以专门与远程命令一起使用,如果远程是指 "outside of your local computer".
上述每个命令都与一个 "remote" 存储库一起工作,该存储库就在您的硬盘上。
可以说,git remote-helpers
用于与通常托管在本地计算机之外的存储库进行通信。