GitHub安装配置

GitHub安装配置
1、安装Git-1.9.5-preview20141217

2、配置config文件
Windows(在命令行下)
cd /d %userprofile%
if not exist "..ssh" mkdir ..ssh
cd ..ssh
echo # ssh config content for git> config
echo Host xxx.xx.xx>> config
echo HostName xx.xx.xx>> config
echo Port xx>> config
echo.>> config
echo Host xxx.xx.xxt>> config
echo Port xx>> config
echo.>> config

3、生成公钥、私钥(git-bash)
$ ssh-keygen.exe -t rsa -C "你注册时,用到的Email"

4、GitHub Web页面导入公钥
profile setting-ssh keys

5、联系管理员开通repository权限后克隆远程repository到本地(git-bash)
$ git clone git@xx.xx.xx /xx

原文地址:https://www.cnblogs.com/gotopower/p/4315834.html