gitlab操作

一、初始设置

在某一个具体的project下:

1.gitlab中删除一个工程
Setting-->General-->Advanced settings-->RemoveProject
2.向项目中添加成员
Setting-->Members-->Project members 添加成员、设置其角色、给予其访问到期时间
选择好后,下面有列出这个项目中有哪些成员。也可以从其它项目中导入这些成员
3.设置保护分支
Setting-->Repository-->Protected Branches
可以设置哪个分支被保护、允许随merge、允许谁push

二、提交过程中问题解决

1.第一次git push报:
No refs in common and none specified; doing nothing.
Perhaps you should specify a branch such as 'master'.
fatal: The remote end hung up unexpectedly
error: failed to push some refs to 'git@gitlab.com:video_group/show_bmp.git'
原因:
Git 找不到你要提交的版本
使用git push origin master可以解决。

原文地址:https://www.cnblogs.com/hellokitty2/p/8146743.html