Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which Git commands cannot be executed locally?

Tags:

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):

  • git fetch
  • git pull
  • git push

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

like image 690
eckes Avatar asked Dec 22 '22 16:12

eckes


1 Answers

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.

like image 163
4 revs, 3 users 67% Avatar answered Jan 03 '23 04:01

4 revs, 3 users 67%