创建第一个项目
非常简单,取个名字,一些简单选择即可
创建成功以后
配置一个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+仓库地址