環(huán)境
debian8.1
github帳戶一個(gè)
ssh一個(gè)
git 一個(gè)
安裝
- 裝入兩個(gè)必須的軟件
sudo apt install ssh git
步驟
1. git的簡單用法
簡單構(gòu)成:當(dāng)前 --> 緩沖區(qū) --> 倉庫
- 創(chuàng)建
- 增
- 刪
- 查
- 改
- 回溯
2. 連接遠(yuǎn)程倉庫
- 生成公鑰
ssh-keygen -t rsa -C "yourname@example.com"
- 添加入github的信任表
cd ~/.ssh
將id_rsa.pub中的公鑰添加到github中的https://github.com/settings/keys
中 - 完成