将自己本地项目上传到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


参考文档

相关推荐
JH30736 小时前
SpringBoot 优雅处理金额格式化:拦截器+自定义注解方案
java·spring boot·spring
Coder_Boy_7 小时前
技术让开发更轻松的底层矛盾
java·大数据·数据库·人工智能·深度学习
jiayong237 小时前
Git 核心概念:Tag 与 Branch 的本质区别
git
invicinble8 小时前
对tomcat的提供的功能与底层拓扑结构与实现机制的理解
java·tomcat
较真的菜鸟8 小时前
使用ASM和agent监控属性变化
java
黎雁·泠崖8 小时前
【魔法森林冒险】5/14 Allen类(三):任务进度与状态管理
java·开发语言
qq_12498707539 小时前
基于SSM的动物保护系统的设计与实现(源码+论文+部署+安装)
java·数据库·spring boot·毕业设计·ssm·计算机毕业设计
Coder_Boy_9 小时前
基于SpringAI的在线考试系统-考试系统开发流程案例
java·数据库·人工智能·spring boot·后端
Mr_sun.9 小时前
Day06——权限认证-项目集成
java
瑶山9 小时前
Spring Cloud微服务搭建四、集成RocketMQ消息队列
java·spring cloud·微服务·rocketmq·dashboard