What Git commands cannot run locally?

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

Just to make sure I didn't miss anything: are there any other commands that need to connect to the remote repository?

+4
source share
3 answers
 git clone git ls-remote git remote prune git remote show git remote update git submodule update git request-pull 

......

Also, 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, you probably only need to list the china commands like the ones above.

+8
source

git remote update and git remote show ${REMOTE} will also need to connect to the remote control.

+2
source

git request-pull would also like to connect to a (potentially remote) repository.

+1
source

Source: https://habr.com/ru/post/1344599/


All Articles