Github使用

xiaoxiao2021-02-28  30

按教程安装

在服务器新建项目,然后再clone到本地

1. 在服务器端新建空项目,并复制clone链接

2.本地新建目录并且git init

3.在本地git clone 前面的链接

4.本地文件修改后git commit -a -m   "添加注释"

5. git push -u origin master向服务器端提交修改

6.如果实在服务器端进行的修改,则git fetch origin master获取修改

在本地新建项目,然后push到服务器

1.编辑本地项目

2.git init

3.git add .  添加当前目录下的所有文件

4. git commit -m "选项"   提交项目

5. 在github上建立项目,并复制链接

//git remote add 仓库名字 仓库url

5. git remote add origin https://github.com/smilesum/Openresty_API-Server.git(改为5的相应链接)

6.git  push  -u origin  +master

//注释:master前加+表示强制

参考链接:https://www.cnblogs.com/chenwolong/p/GIT.html

转载请注明原文地址: https://www.6miu.com/read-2621432.html

最新回复(0)