git上传项目

git上传新项目 1.打开一个现有项目(最好是开发)地址, 2.点击到这个仓库位置 3.点击新建项目 4.新建项目,输入项目名称,以及项目标识串。 5.克隆地址 6.本地新建文件夹,右键 git clone 7.成功后,把下载替换过文件的代码放在这个目录,右键 commit ... 阅读详情

1.如何使用Git上传项目代码到github
2.Git新手入门与上传项目到远路仓库GitHub
3. github常见操作和常见错误!错误提示:fatal: remote origin already exists.
4.【已解决】github中git push origin master出错:error: failed to push some refs to
5.github上传时出现error: src refspec master does not match any解决办法
基本上按上面几篇文章来操作就可以了。
不过还是记录一下自己的具体步骤:
注意下面的步骤不包括git的配置安装过程,具体的配置安装请参考上述的博客,下面所述只是在安装配置成功后进行上传项目的步骤
1.先进入你要上传项目的根目录下,如F:\myprojects\springmvc Maven Webapp

lenovo@idea-PC MINGW64 ~
$ cd f:

lenovo@idea-PC MINGW64 /f
$ cd myprojects

lenovo@idea-PC MINGW64 /f/myprojects
$ cd springmvc Maven Webapp
bash: cd: springmvc: No such file or directory

lenovo@idea-PC MINGW64 /f/myprojects
$ cd "springmvc Maven Webapp"

2.初始化,创建了一个名为.git的文件夹

lenovo@idea-PC MINGW64 /f/myprojects/springmvc Maven Webapp
$ git init
Initialized empty Git repository in F:/myprojects/springmvc Maven Webapp/.git/

lenovo@idea-PC MINGW64 /f/myprojects/springmvc Maven Webapp (master)

3.git add . (将改动添加到暂存区)

lenovo@idea-PC MINGW64 /f/myprojects/springmvc Maven Webapp (master)
$ git add .
warning: LF will be replaced by CRLF in .mymetadata.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in pom.xml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in src/main/resources/spring-mybatis.xml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in src/main/webapp/WEB-INF/web.xml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in src/main/webapp/index.jsp.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in target/classes/spring-mybatis.xml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in target/m2e-jee/web-resources/META-INF/maven/org.springmvc/springmvc/pom.xml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in target/surefire-reports/TEST-net.cxp.test.TestMyBatis.xml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in target/surefire-reports/net.cxp.test.TestMyBatis.txt.
The file will have its original line endings in your working directory.

4.在你的github账户下新建一个repository ,注意这是在网页上进行,不是在本地进行
5.
千万记得下面说的“你的github用户名”不是你用$ git config –global user.name “your name”这句创建的用户名,而是你github账户上显示的用户名,后面的springmvc也是你在网页上(也就是服务器端)新建的仓库(create a new repository)。

touch README
git add README
git commit -m "first commit"
git remote add origin git@github.com:你的github用户名/springmvc.git
git push -u origin master

下面是具体显示

touch README
git add README
git commit -m "first commit"
[master (root-commit) 74ec194] first commit
 64 files changed, 3030 insertions(+)
 create mode 100644 .classpath
 create mode 100644 .mymetadata
 create mode 100644 .myumldata
 create mode 100644 .project
 create mode 100644 .settings/.jsdtscope
 create mode 100644 .settings/com.genuitec.eclipse.j2eedt.core.prefs
 create mode 100644 .settings/com.genuitec.jboss.ide.eclipse.xdoclet.run.prefs
 create mode 100644 .settings/org.eclipse.core.resources.prefs
 create mode 100644 .settings/org.eclipse.jdt.core.prefs
 create mode 100644 .settings/org.eclipse.m2e.core.prefs
 create mode 100644 .settings/org.eclipse.wst.common.component
 create mode 100644 .settings/org.eclipse.wst.common.project.facet.core.xml
 create mode 100644 .settings/org.eclipse.wst.jsdt.ui.superType.container
 create mode 100644 .settings/org.eclipse.wst.jsdt.ui.superType.name
 create mode 100644 README
 create mode 100644 logs/ssm.log
 create mode 100644 pom.xml
 create mode 100644 springmvc.sql
 create mode 100644 src/main/java/net/cxp/controller/GreetingController.java
 create mode 100644 src/main/java/net/cxp/controller/UsersController.java
 create mode 100644 src/main/java/net/cxp/dao/UsersMapper.java
 create mode 100644 src/main/java/net/cxp/mapping/UsersMapper.xml
 create mode 100644 src/main/java/net/cxp/pojo/Users.java
 create mode 100644 src/main/java/net/cxp/service/UsersService.java
 create mode 100644 src/main/java/net/cxp/service/impl/UsersServiceImpl.java
 create mode 100644 src/main/resources/jdbc.properties
 create mode 100644 src/main/resources/log4j.properties
 create mode 100644 src/main/resources/spring-mvc.xml
 create mode 100644 src/main/resources/spring-mybatis.xml
 create mode 100644 src/main/webapp/META-INF/MANIFEST.MF
 create mode 100644 src/main/webapp/WEB-INF/classes/net/cxp/controller/GreetingController.class
 create mode 100644 src/main/webapp/WEB-INF/classes/net/cxp/controller/UsersController.class
 create mode 100644 src/main/webapp/WEB-INF/classes/net/cxp/dao/UsersMapper.class
 create mode 100644 src/main/webapp/WEB-INF/classes/net/cxp/mapping/UsersMapper.xml
 create mode 100644 src/main/webapp/WEB-INF/classes/net/cxp/pojo/Users.class
 create mode 100644 src/main/webapp/WEB-INF/classes/net/cxp/service/UsersService.class
 create mode 100644 src/main/webapp/WEB-INF/classes/net/cxp/service/impl/UsersServiceImpl.class
 create mode 100644 src/main/webapp/WEB-INF/classes/net/cxp/test/TestMyBatis.class
 create mode 100644 src/main/webapp/WEB-INF/web.xml
 create mode 100644 src/main/webapp/greeting.jsp
 create mode 100644 src/main/webapp/index.jsp
 create mode 100644 src/main/webapp/showUser.jsp
 create mode 100644 src/test/java/net/cxp/test/TestMyBatis.java
 create mode 100644 target/classes/jdbc.properties
 create mode 100644 target/classes/log4j.properties
 create mode 100644 target/classes/net/cxp/controller/GreetingController.class
 create mode 100644 target/classes/net/cxp/controller/UsersController.class
 create mode 100644 target/classes/net/cxp/dao/UsersMapper.class
 create mode 100644 target/classes/net/cxp/mapping/UsersMapper.xml
 create mode 100644 target/classes/net/cxp/pojo/Users.class
 create mode 100644 target/classes/net/cxp/service/UsersService.class
 create mode 100644 target/classes/net/cxp/service/impl/UsersServiceImpl.class
 create mode 100644 target/classes/spring-mvc.xml
 create mode 100644 target/classes/spring-mybatis.xml
 create mode 100644 target/m2e-jee/web-resources/META-INF/MANIFEST.MF
 create mode 100644 target/m2e-jee/web-resources/META-INF/maven/org.springmvc/springmvc/pom.properties
 create mode 100644 target/m2e-jee/web-resources/META-INF/maven/org.springmvc/springmvc/pom.xml
 create mode 100644 target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
 create mode 100644 target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
 create mode 100644 target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst
 create mode 100644 target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst
 create mode 100644 target/surefire-reports/TEST-net.cxp.test.TestMyBatis.xml
 create mode 100644 target/surefire-reports/net.cxp.test.TestMyBatis.txt
 create mode 100644 target/test-classes/net/cxp/test/TestMyBatis.class

git remote add origin git@github.com:你的用户名/springmvc.git
git push -u origin master

出现

Counting objects: 116, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (78/78), done.
Writing objects: 100% (116/116), 30.65 KiB | 0 bytes/s, done.
Total 116 (delta 9), reused 0 (delta 0)
remote: Resolving deltas: 100% (9/9), done.
To github.com:chenxiaopan/springmvc.git
 * [new branch]      master -> master
Branch master set up to track remote branch master from origin.

就说明成功了。

华为云创建项目并使用git上传代码 ####### 前提:首先安装了git 一、创建项目 1、登录华为云首页,依次点击"控制台"(如图1.1)→“服务列表”中的“项目管理”(如图1.2)→点击"免费体验"(如图1.3),即可进入到项目管理页面中; 图1.1 图1.2 图1.3 3、点击“新建项目”进行项目的创建; 4、创建好项目后点击“服务”→“代码托管”→“新建仓库”→“普通新建”,将需要输入的内容填写完成,此时完成项目的创建; 二、上传代码 1、在华为云的代码托管中首先设置我的HTTPS密码,点击“设置我的HTTPS密码”进入到设置HT 阅读详情

相关推荐

swagger-api-annotaion_inputFiles.lst_swagger-ui自定义注解api_swagger_

自定义注解,快速实现具有springboot 和swagger开发resapi

warning: LF will be replaced by CRLF in 的原因及解决办法

今天在使用git add 命令的时候,弹出了一个警告 warning: LF will be replaced by CRLF in(具体的一个文件) 原因 LF和CRLF其实都是换行符,但是不同的是,LF是linux和Unix系统的换行符,CRLF是window 系统的换行符。这就给跨平台的协作的项目带来了问题,保存文件到底是使用哪个标准呢? git为了解决这个问题,提供了一个”换行符自动转换“的功能,并且这个功能是默认处于”自动模式“即开启状态的。 这个换行符自动转换会把自动把你代码里 与你当前操作系统

weixin_45419466的博客 4001

IQA图像质量评价 数据集介绍(LIVE、TID2013、CSIQ、LIVEC、KonIQ-10K)

LIVE、TID2013、CSIQ、LIVEC、KonIQ-10K 数据集介绍

qq_37925923的博客 1万+

maven 配置 pom.xml 打包生成:单jar包/jar包+lib目录

生成jar包 2种方式: 1.打包项目依赖的所有jar 生成单个jar包 2.生成jar包 复制所需的依赖jar包到lib目录 Maven打包过程(顺序) clean清空之前生成的文件 IDE内编译该程序 (并测试可成功运行)-- 必须生成class文件!(等待被打包) 确定文件pom.xml中的各项配置 Maven刷新:Reimport All Maven Projects Maven自动打包:Install或package 可打包项目已经编译生成的class文件 + 依赖的jar包 --.

小屁孩大帅-保密的博客 7634

GD32_ADC采样+DMA多通道扫描传输

所使用的MCU 片上集成了 12 位逐次逼近式模数转换器模块(ADC),可以采样来自于 16 个外部通道和 2 个内部通道上的模拟信号。这 18 个 ADC 采样通道都支持多种运行模式,采样转换后,转换结果可以按照最低有效位对齐或最高有效位对齐的方式保存在相应的数据寄存器中。我们主要介绍其多通道扫描转换和DMA传输功能,在多个通道轮询采集ad数据,并使用DMA分别保存各个数据值,其能大大提高ADC的工作效率。以下为ADC 模块框图:

Yin_w的博客 8162

Codesys电子凸轮从入门到应用:手把手教你用MC_CamIn/MC_CamOut实现主从轴同步

本文详细介绍了如何在Codesys平台上使用MC_CamIn和MC_CamOut功能块实现电子凸轮的主从轴同步控制。从环境配置、轴使能到凸轮表创建与动态切换,提供了完整的程序编写指南和调试技巧,帮助工程师快速掌握工业自动化中的高精度运动控制技术。

weixin_26878995的博客 277

2020-08-17-maven-install时Failed to execute goal plugin

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2target\maven-status\maven-compiler-plugin\compile\default-compile\inputFiles.lst (拒绝访问。) target\maven-status\maven-compiler-plugin\compile\default-compile\inputFiles.lst (拒绝访问。) 右键inp

NewBie_Code_farmer的博客 619

Claude Code 使用 OpenAI Codex(GPT-5.3-Codex)完整配置教程

通过 LiteLLM 可以让 Claude Code 调用任何模型,包括:OpenAIDeepSeekGemini本地模型↓↓优点:不依赖 Anthropic API可自由切换模型支持统一 AI Gateway这种“LLM Gateway 架构”正在成为 AI 开发工具的主流实践。

Jacobe_zhao的博客 1万+

生成目录结构树形图

目录结构(ps:生成目录结构 直接使用 tree \f命令) ─maven01 │ pom.xml │ ├─src │ ├─main │ │ └─java │ │ └─com │ │ └─yinwq │ │ └─maven01 │ │ ...

追逐丿的专栏 8807

如何使你的直流电机闭环?(PID讲解)

看了看很多大佬写的PID讲解很全面也很复杂,实在是不适合很多萌新入坑,所以想按自己的理解写一篇通俗易懂的PID算法讲解

a2001444的博客 1万+

保姆级教程:用Ansys Workbench找出BGA焊点最容易坏的位置(附热循环+振动分析)

本文提供了一份详细的Ansys Workbench教程,指导如何通过热循环和振动分析找出BGA焊点最容易失效的位置。从模型搭建、材料定义到网格划分和载荷设置,全面解析了BGA焊点可靠性分析的全流程,帮助工程师提前预防焊点开裂问题,提升电子封装设计的可靠性。

weixin_30983965的博客 420

SpringBoot入门:项目下载,依赖,启动

SpringBoot学习笔记 开始SpringBoot 进入Spring官网:https://start.spring.io/ 红框处可以选择额外的依赖dependencies 导入项目后的目录结构 target目录是运行Maven后由Maven创建的,默认打包的位置也在target目录下 记录坑点:SpringBoot默认扫描子包下的类。即com.Lirs.Spring.XXX包的类才会被扫...

YongerProgrammer的博客 2360

PPT里文字太多如何排版-一口气教你7种布局瞬间让PPT高大上起来

PPT里全是文字且很拥挤怎么办?本篇教你使用7种不同的排版让你的PPT瞬间变得高大上起来。

打造全国最全的AI Agent开发知识领域的博客 5026

将本地项目上传至git

本地项目上传至git

weixin_40659514的博客 1万+

Open3D 计算点云法向量的夹角【2026最新版】

计算法向量的夹角,博客长期更新,本文最新更新时间为:2026年3月7日。

点云侠的博客 3131

计算机控制技术及应用

《计算机控制技术及应用》通过总结作者的科研成果和吸收国内外的先进理论、方法和技术,以计算机控制系统的网络化、开放化、智能化和集成化发展趋势为主线索,主要介绍计算机控制系统的基本概念和计算机控制系统的典型形式,计算机控制系统的数学描述与基本分析方法,以及数字PID控制器、最少拍控制系统、达林算法、状态变量设计法等设计方法及其各种改进算法。重点突出计算机控制系统输入输出通道接口的设计方法和典型控制系统的设计案例与实现方法等。

将自己的项目上传至Git

git

weixin_64443786的博客 1516

Data-Structures-and-Algorithm-Analysis-in-Java.pdf

作者: Weiss, Mark A. 出版社: Addison Wesley Data Structures and Algorithm Analysis in Java is an “advanced algorithms” book that fits between traditional CS2 and Algorithms Analysis courses. In the old ACM Curriculum Guidelines, this course was known as CS7. This text is for readers who want to learn good programming and algorithm analysis skills simultaneously so that they can develop such programs with the maximum amo...

如何上传项目到git仓库

1、首先在git空间上面创建一个新项目,项目名称跟需要上传的项目名称一致。 2、创建完成后,会生成一个git上面的链接,该链接即为需要下载和上传项目的链接。 3、用intellij idea创建一个新项目(名称一致) 4、在这一步我们需要下载git上面的新项目到本地(这里需要先安装git客户端) 右键在任意本地目录下单击、选择git Bash Here, 这里填写第二步...

小小渔夫 1585

android 蓝牙通讯demo

android 下蓝牙通讯demo,实现了发现蓝牙,使能蓝牙,通过蓝牙发送消息。

STM32F407中文手册

STM32f407中文手册 本参考手册面向应用开发人员,提供有关使用 STM32F405xx/07xx、STM32F415xx/17xx、 STM32F42xxx 和 STM32F43xxx 微控制器存储器与外设的完整信息。STM32F405xx/07xx、STM32F415xx/17xx、STM32F42xxx 和 STM32F43xxx 构成一个微 控制器系列,各产品具有不同的存储器大小、封装和外设。有关订购信息以及器件的机械与电气特性,请参见数据手册。有关 ARM Cortex™-M4F 内核的信息,请参见《Cortex™-M4F 技术参考手册》。

使用git上传项目的步骤

步骤操作1确保已安装 Git2打开终端,进入你的项目文件夹3运行git init初始化仓库4运行git add .添加文件到暂存区5运行git commit -m "提交信息"提交到本地6在 GitHub/Gitee 等平台创建远程仓库,复制仓库地址7运行git remote add origin 仓库地址关联远程8运行(或 master)首次推送9之后日常使用git addgit commitgit push即可。

id9426的博客 1959

如何在git上传自己的项目

如何在git上上传自己的项目 ` 首先你得注册一个自己的GitHub账号,注册网址:https://github.com/join有了自己的账号以后,就可以进行登录,开始创建一个新的项目创建一个新的项目,填写项目名称,描述创建完成之后,跳转到下面的页面,下面红框中的网址要记住,在后面上传代码的时候需要使用接下来,...

qq_44599041的博客 196

如何上传git项目

①可直接新建Project,也可以创建Group后再新建Project。如果是前后端分离,包含多个项目的,建议放Group中进行统一管理维护。②输入项目名称③创建成功。

qq_44982045的博客 512

Git上传项目步骤

Git命令上传项目到远程仓库 什么是git   Git(读音为/gɪt/),是一个开源的分布式版本控制系统,可以有效、高速地处理从很小到非常大的项目版本管理。   Git 是 Linus Torvalds 为了帮助管理 Linux 内核开发而开发的一个开放源码的版本控制软件。   优点:  适合分布式开发,强调个体。  公共服务器压力和数据量都不会太大。  速度快、灵活。  任意两个开发者之间可以很容易的解决冲突。  离线工作。 上传项目到git的操作流程   1.本地安装Git   

weixin_38705074的博客 335

Eclipse上传项目到Git

原 Eclipse上传项目到Git 2017年02月21日 10:43:15 fan510988896 阅读数:25108 </div> <div class="operating"&...

never__stop的博客 914

【关联git本地仓库,上传项目到github】

Git 是一个免费的开源分布式版本控制系统,你可以使用它来跟踪文件中的更改。GitHub是一个基于git的代码托管平台,在github上可以建立仓库用于存放项目。

zzzyyy8的博客 1948

git上传项目 openssh_GitHub上传项目

已经下载好git。(Git,官方下载地址)1、新建项目得到如下界面:先停在这里。2、上传项目找到要上传的项目,在对应文件夹下,单击右键,点击Git Bash Here。出现如下界面:输入相应代码:git init # 在当前项目的目录中生成本地的git管理(会发现在当前目录下多了一个.git文件夹)git add . # 将项目上所有的文件添加到仓库中的意思,...

weixin_28678151的博客 405

git上传和拉取项目

2、将要上传的文件放入项目文件夹中。红色的代表是未上传的文件。

ddccaaxXasac的博客 492

【超级傻瓜版】将Unity项目上传至Git

概述 在公司闲的时候学的很多东西,想上传到Git,回家直接Clone下来感觉非常方便,网上找了一些资料讲了很多很细致,但其实我用不到,我只需要知道如何上传项目到Git,仅此而已,也是这篇文章要讲的。 准备 首先注册一个Git账号,Gitee,Github等都可以,流程是一样的,这里我用的Gitee举例 gitee传送门 gitHub传送门 下载SourceTree,这个是我们用来上传项目的工具 SourceTree官网 创建Git仓库 将仓库Clone到本地 复制这个仓库链接 (gitHub

qq_45611880的博客 4963
上一篇: SSM框架——整合注意事项
下一篇: git删除文件夹/文件(不删除本地文件)
github_32658299
博客等级 码龄11年 21粉丝 33原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值