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

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

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

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

分享给朋友:

相关文章

java将金额转化为大写金额

 private static String[] num = {"零","壹","贰","叁","肆...

js限制input只能输入数字、英文、汉字

 1.只能输入数字和英文的:  <input onkeyup="value=value.replace(/[\W]/g,'') "...

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...

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

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

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

js/jquery 实现点击图片更换头像(图片)实例

    总之一句话, 可以先将 file类型 的input 隐藏 起来,通过 图片(头像)的onclick事件 来触发 file 的onclick事件。1.引入外部js:...

评论列表

发表评论

访客

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