Github賬號創建使用

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命令上傳

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章