idea推送项目到gitee中的创建方法
目录
- springboot初始化器新建项目
- 项目结构
- idea工具类中初始化本地git仓库
- add 到缓存区
- commit 到本地库
- 文件颜色状态描述
- gitee初始化远程仓库
- idea中建立远程仓库
- push推送到远程仓库
- push报错
- pull拉起远程仓库
springboot初始化器新建项目

文章图片
项目结构

文章图片
idea工具类中初始化本地git仓库

文章图片
选择当前项目目录即可

文章图片
工具类由VCS变成了Git

文章图片
add 到缓存区
对红色文件右键,选择
git-->add
,添加到缓存区中。也可以选择整个目录一起进行添加。
文章图片
commit 到本地库
选择整个目录选择
Git-->Commit Directory
提交到本地库中【idea推送项目到gitee中的创建方法】

文章图片
填写日志,提交并推送到远程库

文章图片
文件颜色状态描述
红色,表示新建的文件,没有
add
到缓存区中
文章图片
文件显示为绿色,表示已
commit
到缓冲区中
文章图片
文件已提交到本地库中,颜色变成了黑色

文章图片
gitee初始化远程仓库

文章图片
idea中建立远程仓库 工具栏
git-->manage Remotes

文章图片

文章图片
push推送到远程仓库 工具类
git-->push

文章图片

文章图片
push报错

文章图片
查看详情

文章图片
原因:就是在gitee中初始化了仓库,就有了一次commit提交,远程仓库会存在首次提交的文件,git提示我们需要先pull拉取项目然后在push提交

文章图片

文章图片
pull拉起远程仓库

文章图片
如果找不到分支,使用快捷键
Ctrl+F5

文章图片

文章图片
重新提交并推送到远程库,成功
到此这篇关于idea推送项目到gitee中的创建方法的文章就介绍到这了,更多相关idea推送项目到gitee内容请搜索脚本之家以前的文章或继续浏览下面的相关文章希望大家以后多多支持脚本之家!
推荐阅读
- 17|17 关山松 第二课作业#公众号项目# D20
- RxJava|RxJava 在Android项目中的使用(一)
- IDEA|IDEA 创建工程
- Hacking|Hacking with iOS: SwiftUI Edition - SnowSeeker 项目(一)
- 靠QQ月入上万灰色暴利偏门的项目
- 15、IDEA学习系列之其他设置(生成javadoc、缓存和索引的清理等)
- spring|spring boot项目启动websocket
- vuex|vuex 基础结构
- 区块链开发平台(以太坊)
- 如何在手机上查看测试vue-cli构建的项目