安装Git
略过
安装ssh
使用powershell安装OpenSSH
以管理员身份开启Powershell
先验证是否已安装
Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH*'
如果未安装 输出为
此时进行安装
# Install the OpenSSH Client
Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0
# Install the OpenSSH Server
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
返回如下输出即安装成功
ssh生成私匙
以管理员身份开启Powershell
配置用户名
git config --global user.name "lpy"
配置邮箱
git config --global user.email "[email protected]"
切换目录
cd ~/.ssh
<