使用命令将本地项目上传至git

1542年前 (2023-07-06)开发工具3422

1.新建仓库,并获取git地址。


image.png

2.找到本地的项目所在文件夹,鼠标右键git bash here,进入命令窗口。

image.png

3.依次输入一下命令:

git init             --初始化本地仓库

git add .           --全部添加至本地仓库

git commit -m '首次提交'     ---提交至本地仓库

git remote add origin https://gitee.com/*****/dis-platform.git   ---提交至线上仓库

git push -u origin master     --推送至git线上仓库


 image.png

本文原创,转载必追究版权。

分享给朋友:

相关文章

js动态加载复选框checkbox(XML串)

 首先,使用JS动态产生Checkbox可以采用如下类似的语句:代码如下:var checkBox=document.createElement("input");che...

org.tigris.subversion.javahl.ClientException:Attempted to lock an already-locked dir

 svn更新或提交时候报错:org.tigris.subversion.javahl.ClientException:Attempted to lock an already-locke...

get/post方式调用http接口

get/post方式调用http接口

 1. 项目环境如下:myeclipse8.5 、tomcat5.0/weblogic、xp、JDK:开发1.5,编译1.4为了方便,在原来的web项目UpDown中新建了一个httpcal...

freeMarker 截取字符串(操作字符串函数 )

<#if c.proSummary!?length gt 25>  <!-- 如果长度 >25 截取25个字-->    ...

freemarker 判断日期变量为空处理 及InvalidReferenceException异常处理

at freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:98);InvalidR...

js/jquery 日历控件及实例下载

js/jquery 日历控件及实例下载

实现日历控件效果:页面:<link href="${base}/resource/${profile.path}/css/lhgcalendar.css" rel="...

评论列表

http://www.h2user.com
http://www.h2user.com
1年前 (2024-10-29)

每次看到你的文章,我都觉得时间过得好快。

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。