I would like to be able to send an environmental variable when invoking, for example git clone over ssh:
git clone ssh://host.example/project
I know that this can be achieved by setting the SendEnv in ~/.ssh/config for host.example. Although I would like to avoid modifying any files. For example, with only ssh we could do:
ssh -o SendEnv=MYVAR server.example.com mycommand
and no file modification is necessary. Is there a similar way to achieve this when using git clone over ssh?
Cheers!