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 阅读详情

相关推荐

Origin绘制带差异显著性标记的分组均值条形图|科研论文图表教程(附数据格式模板)

传统柱状图虽能呈现组间均值差异,却隐藏个体数据分布;散点图虽能展示原始数据,却难以直观凸显统计显著性。带差异显著性(*)的分组均值条形图——它以“双层叙事”的创新设计,同时呈现群体特征与个体差异。

weixin_50236590的博客 1507

Git的使用

1.创建代码仓库 1.1 配置身份   git config --global user.name “jay”   git config --global uer.email “chenyjay@163.com” 1.2 查看配置信息   git config --global user.name   git config --global user.email 1.3 创建   

Jay 448

Linux文件操作四剑客

① /^(d{2}|d{4})-((0([1-9]{1}))|(1[1|2]))-(([0-2]([1-9]{1}))|(3[0|1]))$/ // 年-月-日 yyyy-MM-dd / yy-MM-dd 格式。⑥“^(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9]*[1-9][0-9]*))$” //正浮点数。

wuds_158的博客 1613

Maven编译时出现的错误:inputFiles.lst: Input length = 1 -> [Help 1]

【代码】Maven编译时出现的错误:inputFiles.lst: Input length = 1 -> [Help 1]

qq_51313121的博客 506

扫地机器人:从仿真到决策,一个完整SLAM导航系统的自研之路

本文详细记录了从零开始自研扫地机器人SLAM导航系统的全过程,涵盖ROS-Gazebo仿真系统搭建、地图预处理优化、全覆盖规划算法迭代等关键技术。通过三次算法升级,最终实现92%的清洁效率,并分享DWA调参、状态机设计等实战经验,为开发者提供从仿真到落地的完整解决方案。

weixin_29053695的博客 358

【08】C#实战篇——C#调用C++ 动态库dll,报错 “无法加载DLL“xxx.dll”: 找不到指定的模块。 (异常来自 HRESULT:0x8007007E)。”

摘要: 本文详细分析了C#调用C++封装的DLL时出现“无法加载DLL”错误的排查与解决方法。通过案例演示,列举了常见原因(如平台不匹配、路径错误、依赖缺失等),并重点介绍了使用VS的dumpbin工具检测DLL依赖项的方法。最终定位问题为缺失依赖的LineApi.dll和opencv_world455d.dll,将其放入C#的exe目录后解决。文章还对比了C++与C#的报错差异,提供了通用解决方案,包括检查运行时库、环境变量等,帮助开发者高效解决类似问题。 关键词: C#调用C++ DLL、dumpbin

程序员,他们想的是什么?他们想的永远都是技术,他们崇尚的也永远都是技术。 2109

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

Homebrew高效升级与国内镜像源配置全攻略

本文详细介绍了如何通过配置国内镜像源(如清华、中科大、阿里云)来高效升级Homebrew,解决国内开发者访问GitHub仓库速度慢的问题。文章提供了从基础配置到永久生效的完整教程,包括常见问题解决和进阶技巧,帮助开发者大幅提升软件包管理效率。

weixin_28835551的博客 423

SpringBoot项目持续集成之最终效果

Started by user root Running as SYSTEM Building in workspace /var/jenkins_home/workspace/test The recommended git tool is: NONE using credential gitlab > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository .

记录我学习的点点滴滴 1017

从三个角度理解知识图谱

2012年谷歌首次提出“知识图谱”这个词,由此知识图谱在工业界也出现得越来越多,对于知识图谱以及相关概念的理解确实也是比较绕。自己在研究大数据独角兽Palantir之后开始接触知识图谱,也算对其有了一定了解,这里从三个角度总结一下怎么去理解知识图谱。 几个基本概念:本体、实体、知识库、知识图谱 1、本体是概念的集合,是大家都公认的概念框架,一般不会改变如“人”、“事”、“物”、 “地”、“组...

JavaChaoCo的博客 6904

在MATLAB和Simulink中设计并仿真一个智能建筑能效优化系统

智能建筑能效优化是现代建筑管理的重要组成部分,旨在通过智能化手段降低能源消耗、减少碳排放并提高居住舒适性。通过Simulink进行智能建筑能效优化仿真,可以验证控制策略的有效性、优化系统设计并降低开发成本。以下是如何在MATLAB和Simulink中设计并仿真一个智能建筑能效优化系统的详细步骤。通过上述步骤,我们成功设计并实现了基于Simulink的智能建筑能效优化仿真。该系统能够模拟复杂的建筑环境,验证能效优化策略的有效性,并通过优化设计提高建筑的能源利用效率和居住舒适性。

xiaoheshang_123的博客 143

git的使用

下载与安装 下载地址:Git for Windows配置个人信息(名字与邮箱) 使用Git的第一件事就是设置你的名字和email,这些就是你在提交commit时的签名 git的使用(命令行) 创建本地仓库 :把当前目录变成一个git仓库,并自动创建分支 工作区与版本库概念 创建(修改)文件添加到暂存区:提交到版本库:查看仓库变更状态:正在上传…重新上传取消创建SSH Key: 以上命令会在windows当前用户的目录里创建目录,里面有(私钥)和(公钥)两个文件添加公钥

m0_64547652的博客 347

Pdu Router(PduR)模块

1. PduR路由基本功能 2. PduR总线网关功能 3. PduR缓存机制 4. 总结

weixin_43759043的博客 3852

将本地项目上传至git

本地项目上传至git

weixin_40659514的博客 1万+

霍尼韦尔SoftMaster使用说明

霍尼韦尔SoftMaster使用说明

全球国家地区城市数据

MySQL全球国家地区城市数据报。。。。。。。。。。。。

将自己的项目上传至Git

git

weixin_64443786的博客 1517

蓝牙模块HM-10手册

蓝牙模块HM-10手册,该手册对蓝牙模块HM-10进行了详细的介绍和使用方法以及一些AT指令。

如何上传项目到git仓库

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

小小渔夫 1588

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的博客 1967

如何在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的博客 918

【关联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

Git上传项目到GitHub

选择Standalone Installer(单独安装程序),并点击64bit Git for Windows Setup(64位Git for Windows安装程序)进行下载。然后打开SSH keys菜单, 点击Add SSH key新增密钥,填上标题,可以跟仓库保持一致。接着将id_rsa.pub文件中key粘贴到此,最后Add key生成密钥。如果有2个文件,则密钥已经生成,id_rsa.pub就是公钥,如果没有生成,那么通过。将要上传的项目统一放在一个文件夹,例如AA中。,一路回车键来生成。

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

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值