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

posted on 2015-03-05 14:52  童叟无欺的小power  阅读(241)  评论(0编辑  收藏  举报

导航