首先要保证下载git客户端,下载地址为:https://git-scm.com/download/win
一,使用注意
1.上传时注意
使用Git客户端再次提交的时候,需要先更新服务器上的变化,然后才能提交,也就是先更新再提交
二,连接webstorm
1.选择file->setting:

2.ws中VCS 选择【import into Version control】-->【Create Git Repository...】-->选择要上传的项目

3.右击项目(或要上传的文件夹/文件)【git-->add】

4.提交
- 4.1【git-->commit directory】提交添加的文件
- 4.2【Commit Message】添加提交描述
-
4.3【Commit】提交
5.【pull】操作:提交之后,右击项目,选中【git-->repository-->push】

6. 复制码云上的HTTPS开头的路径,点击Define remote(定义远程)

7.【git-->pull】:①点击刷新 ②origin/master
8. 进入项目目录【GitBush】【pull/push失败执行】:git pull origin master --allow-unrelated-histories
9. 进入项目目录【GitBush】【pull/push失败执行】:git pull origin master --allow-unrelated-histories
学习时的记录,共同交流
网友评论