赞
踩
打开IDEA,“File” — “Setting” — “Plugins” --“搜索gitlab” – “安装完后重启”
从gitlab上面检出项目,File->New->Project From Version Control->Git
然后在新的弹框中输入gitlab地址,点击clone,clone完成之后打开即可
切换到总分支,pull,切换到自己分支,在总分支上marge into current ,push
Remote Branches:表示的是两个远程分支
Local Branches:表示的是两个本地分支,有个书签的表示当前工作空间的代码是此分支;
分支介绍:
upstream是远程总仓库
master是远程分支仓库
切换到总仓库, 右键 upstream 选择 checkout
更新项目:项目右键,选择git,选择repository,选择pull,拉取最新代码;
当前为最新的代码
切换到自己的分支master中,然后在总分支上选择marge into current,就可以把upstream的代码合并到master中
项目右键,选择git,选择repository,选择push
参考:
https://blog.csdn.net/gomeplus/article/details/78241070
https://www.jianshu.com/p/b9e4187ccc7b
下图为GitLab
在IDEA界面操作如下:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。