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

1543年前 (2023-07-06)开发工具3792

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

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

分享给朋友:

相关文章

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

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

java解析JSON 数组数据 实例

 public  static void main (String args[]){  String sJson ="[{'acceptTim...

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

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

坑爹的ShowModalDialog 后台传值解决方案

 今天遇到需要ShowModalDialog打开页面,通过acceptanceIds 参数值后台过滤出相应结果前台  var url = "loadAccept...

jquery 操作html元素(及CSS)

jquery 操作html元素(及CSS)

 $("li").addClass("aui-user-view-cell aui-img") ;  //给元素添加样式$('#a1...

dwz +jfinal 批量多文件上传 实例

页面部分:<link href="${root}/style/dwz/uploadify/css/uploadify.css" rel="sty...

评论列表

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

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

发表评论

访客

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