I don't recognize the situation that you would have to make special environment settings to make Git commands work. Are you sure you have it set up the right way?
I usually recommend that developers to
- Install msysgit
- Install TortoiseGit.
- While installing TortoiseGit, they should choose OpenSSH (not TortoiseGitPLink).
- Run
ssh-keygen.exe -C "firstname.lastname@domain.com"
to generate keys in the$HOME\.ssh
folder - Copy the public key in
.ssh\id_rsa.pub
to the Git server.
OpenSSH does not require pageant.exe
.
After this setup, no extra environment settings are needed. (SSH_AGENT_PID and SSH_AUTH_SOCK variables are set up by the frameworks). git clone ssh://xxxx
should work right away.