哪些Git命令不能在本地执行? [英] Which Git commands cannot be executed locally?

查看:133
本文介绍了哪些Git命令不能在本地执行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我与同事谈论Git时,我告诉他们,只有三个Git命令在初始化本地回购库(假设 origin )时不会执行远程存储库,当然,code>不在本地机器上):



为了确保我没有错过任何东西:是否有任何其他命令需要连接到远程存储库?

解决方案

  git clone 
git ls-remote
git remote prune
git remote show
git remote update
git submodule update
git request-pull

... ...



许多 git svn 子命令都需要一个外部Subversion存储库。



有几个管道需要外部存储库的命令,但是在介绍同事参与git的情况下,可能只需列出上面的瓷器命令。


When I talk to colleagues about Git, I tell them, that there are only three Git commands that cannot be executed without going to a remote repository once a local repo is initialized (assuming that origin is not on the local machine, of course):

Just to make sure that I didn't miss something: are there any other commands that need a connection to a remote repository?

解决方案

git clone
git ls-remote
git remote prune
git remote show
git remote update
git submodule update
git request-pull

... ...

Also many git svn subcommands require an external Subversion repository.

There are several "plumbing" commands that require an external repository, but in the context of introducing colleagues to git, it's probably only worth listing the "porcelain" commands like those above.

这篇关于哪些Git命令不能在本地执行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆