下载地址:https://git-scm.com/download/win
打开Git Bash输入 ssh-keygen
打开C:\Users\hsy\.ssh\id_rsa.pub
在某个git仓库目录下:git config user.email "huangsy13@gmail.com"
git config user.name huangsy13
git for Windows
原文:http://www.cnblogs.com/huangshiyu13/p/6239139.html