首页 > Web开发 > 详细

使用git 上传项目到gitee/github

时间:2019-04-15 11:55:05      阅读:144      评论:0      收藏:0      [点我收藏+]

参考: https://blog.csdn.net/qq944639839/article/details/79864081


 

注意:在此之前需要设置ssh公匙

 

在本地项目文件中使用bash

$ git config --global user.name "你的名字"

$ git config --global user.email "你的邮箱"

1. 初始化  

$ git init

$ git remote add origin https://gitee.com/xxx/xxx.git (你的远程项目地址)

2.克隆一下

$ git clone https://****.git (你的远程项目地址)

 

如果项目是空的,则需要进行 第一步与第二步

 

3. 提交

$ git pull origin master

$ git add .

$ git commit -m "提交描述"

$ git push origin master

 

技术分享图片

完成了第一次提交

使用git 上传项目到gitee/github

原文:https://www.cnblogs.com/schips/p/10709774.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!