1. 登录git (https://gitee.com/)
2. 登录成功后进入个人仓库

2.1 点击仓库的+号,创建私有仓库或公开仓库
我创建的是公开的仓库

创建完成

3. 发布项目
3.1 创建 .gitignore 文件


# Created by .ignore support plugin (liyh) .idea *.iml target
3.1 创建git仓库


完成后项目会显示红色

3.1 提交代码(选择项目右键选git)

选择完成,点击commit,提交完代码到本地仓库。

git -> repository -> push 推送到远程仓库


输入仓库密码,完成push


4. 项目上传git完成
