1.註冊Github賬號;
2.創建repository;https://github.com/new
3.安裝Git shell;http://windows.github.com/
4.Git shell 創建密鑰
ssh-keygen -C '[email protected]' -t rsa連續三個回車之後會在windows當前用戶目錄下生成.ssh文件夾,和linux一樣。
5.Setting-->Personal Setting-->SSH and GPG Key
6. 在Git Shell下輸入命令測試剛纔的公鑰是否認證正確
ssh -T [email protected]7.clone剛纔新建的repository 到本地,輸入命令:
git clone https://github.com/xxx/test.git
8.將想上傳的代碼目錄拷貝到此文件夾下
9.git命令上傳