Running git from Windows Cmd line: Where are key files?

后端 未结 2 1320
孤街浪徒
孤街浪徒 2020-12-23 14:45

So I\'ve installed msysgit, and run git successfuly from the bash shell.

From within the bash shell, I\'ve created keys with ssh-keygen - everything wor

相关标签:
2条回答
  • 2020-12-23 15:19

    From a Windows DOS file, you need to define a %HOME% environment variable.

    HOME doesn't exist in a DOS session by default.
    You can set it to %userprofile%, since this is already your current setting.
    You also can add it to your user environment variables, in order for any DOS session to get it.

    0 讨论(0)
  • 2020-12-23 15:29

    To get the mysysgit command line to find the .ssh keys you'll need to have %HOME% point to the directory containing the .ssh folder

    Often you can just do

    set HOME=%USERPROFILE%
    
    0 讨论(0)
提交回复
热议问题