From: Junio C Hamano <gitster@pobox.com>
To: "Michał Iwanicki" <michal.iwanicki@3mdeb.com>
Cc: git@vger.kernel.org
Subject: Re: Does GIT_SSH_COMMAND apply to all git commands that connect to remote?
Date: Fri, 26 Jul 2024 08:33:22 -0700 [thread overview]
Message-ID: <xmqqy15oxj5p.fsf@gitster.g> (raw)
In-Reply-To: <3856e339-3c93-4c29-a668-334bdd7bff7a@3mdeb.com> ("Michał Iwanicki"'s message of "Fri, 26 Jul 2024 10:25:40 +0200")
Michał Iwanicki <michal.iwanicki@3mdeb.com> 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.
prev parent reply other threads:[~2024-07-26 15:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-26 8:25 Does GIT_SSH_COMMAND apply to all git commands that connect to remote? Michał Iwanicki
2024-07-26 15:33 ` Junio C Hamano [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqy15oxj5p.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=michal.iwanicki@3mdeb.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).