美文网首页
webstorm使用git提交项目到码云

webstorm使用git提交项目到码云

作者: SleepWalkerLj | 来源:发表于2021-01-15 11:29 被阅读0次

首先要保证下载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

学习时的记录,共同交流

相关文章

网友评论

      本文标题:webstorm使用git提交项目到码云

      本文链接:https://www.haomeiwen.com/subject/lgwiaktx.html