$ ssh-keygen
Enter file in which to save the key (/c/Users/{Your_User_Name}/.ssh/id_rsa):
Created directory ‘/c/Users/{Your_User_Name}/.ssh‘. Enter passphrase (empty for no passphrase): Enter same passphrase again:
C:\Users\{Your_User_Name}\.ssh
git clone --recursive(如果存在submodule的话) [你的git地址]
8. 完成
还可参见:https://confluence.atlassian.com/display/BITBUCKET/Set+up+SSH+for+Git
原文:http://blog.csdn.net/lan_liang/article/details/42719243