将自己本地项目上传到git,IDEA图文操作

文章目录

一、初始化git仓库

  • 在自己的项目中,命令行中输入
shell 复制代码
git init

二、gitee创建仓库

  • 新建仓库
  • 设置仓库参数,设置5个参数其他不管使用默认的就行

三、输入自己仓库的地址

  • 这个url链接就选择你自己仓库的
shell 复制代码
git remote add origin https://gitee.com/xxx-xxxx/ceshi.git
shell 复制代码
git remote add origin https://gitee.com/BFstudytoto/kaoshibao.git

四、在添加所修改的文件

shell 复制代码
git add .    

可能的错误

  • 执行
shell 复制代码
git config --global core.autocrlf true

五、合并需上传文件

shell 复制代码
git commit -m "第一次上传"


六、上传

shell 复制代码
git push origin master


参考文档

相关推荐
吴声子夜歌3 小时前
ApacheCommons——commons-text(模板替换与文本算法)
java·开发语言·算法·apache
Haooog3 小时前
Agent 开发中的 Memory:State、短期记忆、长期记忆与 Memory Retrieval
java·agent·memory
砚底藏山河3 小时前
【量化纯GET实战 #23】多股票相关性:用收益率看板块联动
java·数据库·python·金融·数据分析
抠脚小弟4 小时前
Spring Cache 使用详解:从入门到实战
java·spring
ZGG0034 小时前
MySQL 索引详解:B+ 树、聚簇索引与最左前缀
java·数据库·mysql
萧瑟余晖4 小时前
Java深入解析篇五十四之对象模型详解
java·开发语言
张文是假的啊4 小时前
Java | record | Controller逻辑
java·开发语言
勿忘,瞬间4 小时前
Mybatis高阶
java·数据库·mybatis
嘻哈baby6 小时前
Go 函数中的参数为什么不支持默认值?
java·开发语言·jvm
慧都小项6 小时前
MyEclipse 2026:当 Agent、MCP 与 Java 26 进入 Eclipse 工作流
java·eclipse·springboot·copilot·myeclipse