1. 程式人生 > >Windows下搭建Git,Python環境

Windows下搭建Git,Python環境

環境:windows10(其它版本應該區別不大)

GIt的搭建

git-gui(有圖形化的操作介面,也支援命令列操作)下載: https://git-scm.com/downloads

圖形化介面的使用先跳過(可參考網友的 http://www.cnblogs.com/iruxu/p/gitgui.html)~

安裝好git-gui之後,開啟Git Bash

cd(到根目錄)

ssh-keygen -t rsa -C 'Your email address'

然後一路回車,生成ssh的公鑰和私鑰

ssh-add ~/.ssh/id_rsa

如果出現Could not open a connection to your authentication agent.

就執行:ssh-agent bash

最後把公鑰複製到git裡面的ssh-key裡(檢視公鑰 cat ../.ssh/id_rsa.pub)