Getting ssh-agent to work with git run from windows command shell

后端 未结 7 1369
遥遥无期
遥遥无期 2020-12-04 07:09

I have msysgit installed, with OpenSSH. I am connecting to a gitosis repo. From the git bash, I have created a .profile file that runs ssh-agent (if not already

7条回答
  •  一生所求
    2020-12-04 07:18

    You could wrap your git executable with a script that sources your .profile, causing the ssh-agent environment variables to be loaded.

    Either put a script called git in a directory earlier in your path than the real git, or configure the git extensions to call your wrapper in place of the real git.

提交回复
热议问题