git:webstorm提交项目到码云

1.码云创建项目

2.webstorm【以下简称ws】

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

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

   2.3【git-->commit directory】提交添加的文件

   2.4【Commit Message】添加提交描述

   2.5【Commit】提交

   2.6【pull】操作:提交之后,右击项目,选中【git-->repository-->push】

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

   2.8【git-->pull】:①点击刷新 ②origin/master

   2.9项目目录【GitBush】【pull/push失败执行】:git pull origin master --allow-unrelated-histories

右下角点击Version Control 查看

-->【git Add】-->【git Commit Directory..】