創建第一個項目
非常簡單,取個名字,一些簡單選擇即可
創建成功以後
配置一個SSH公鑰
查詢本地已經配置的公鑰
在gitee上面配置
如果本地沒有key需要生成一個:
- From the Terminal or Git Bash, run ssh-******
- Confirm the default path .ssh/id_rsa
- Enter a passphrase (recommended) or leave it blank.Remember this passphrase, as you will need it to unlock the key whenever you use it.
- Open ~/.ssh/id_rsa.pub and copy & paste the contents into
the box below, then click on 「Add」.
Note that id_rsa.pub is your public key and can be shared,
while id_rsa is your private key and should be kept secret.
本地項目放gitee上面
初始化git
複製gitee上面剛剛創建的項目地址
添加遠程倉庫
到此第一個項目已經創建成功。
總結
- gitee和github幾乎完全一致。
- 操作流程簡單,一次性成功。
- 初始化倉庫:git init
- 添加倉庫:git remote add origin+倉庫地址