Re: Does GIT_SSH_COMMAND apply to all git commands that connect to remote?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Michał Iwanicki <michal.iwanicki@xxxxxxxxx> writes:

> I'm asking this question, because in docs it explicitly mentions git fetch and git push. Does it apply do other commands
> like git clone? If yes then maybe this information should be added?

"git clone" is like "init + fetch + reset --hard" and "git pull" is
like "fetch + merge/rebase".  They both talk to a remote repository.

When the partial clone feature that allows lazy fetching of missing
objects is in use, you cannot even name an exact command that may
trigger transferring of objects from remote repositories, as a fetch
happens on-demand any time you access an object that you ought to
have fetched during the initial clone but you didn't due to use of
the partial clone feature.

All of them use the usual remote transfer mechanism.

I doubt that it makes sense to repeat it in any and all commands
that potentially connect to remote repositories.  In fact, "git help
git", the most central place, is where GIT_SSH_COMMAND and GIT_SSH
environment variables are described.





[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux