逝者如斯夫

静而思之
数据加载中……

Git on Windows

下载文件 http://msysgit.googlecode.com/files/PortableGit-1.7.7.1-preview20111027.7z

解压至 D:\JavaSoft\git-1.7.7.1

增加系统环境路径:D:\JavaSoft\git-1.7.7.1\bin;D:\JavaSoft\git-1.7.7.1\cmd;

设置系统属性:
git config --global user.name "your.name" git config --global user.email git.mail.name@gmail.com

创建密钥:

mkdir /.ssh

ssh-keygen -f D:\JavaSoft\git-1.7.7.1\.ssh\id_rsa -t rsa -C 'git.mail.name@gmail.com' -t rsa

复制 id_rsa.pub 的内容,到github.com增加公钥,然后粘贴保存。

测试:git -v -T git@github.com

Hi your.name! You've successfully authenticated, but GitHub does not provide shell access.

posted on 2011-11-12 11:27 ideame 阅读(334) 评论(0)  编辑  收藏 所属分类: Configuration


只有注册用户登录后才能发表评论。


网站导航: