1.首先要有账号用户名进入gitlablab的登录界面
2.到ProfilE Settings添加SSH Keys
首先要用自己的电脑生成公钥私钥
生成方式需要终端的帮助,这步mac本操作起来不用win本那么麻烦只用在终端上输入ssh-keygen -t rsa -C "自己账号的邮箱"然后系统提示输入文件保存位置等信息,连续敲三次回车即可

出现这样的状况就是成功
打开Finder同时按command+shift+G

出现这个以后输入~/.ssh进入.ssh文件夹后

用文档把id_rsa.pub打开复制里面所有内容


3.到Groups添加组


设置好以后保存这步骤就不用说了要是不知道那个是保存可以找有道词典把所以的英语翻译一遍
4.添加Projects
保存分组以后自动会跳转界面到建立工程要是没有跳转可以选择右边的Projects进入到添加界面点击左上的绿色的New Project按钮

设置以后就可以保存了
5.可以选择终端的方式建立本地仓库也可以选择一些软件我这里选择的SourceTree

下面就介绍SourceTree的使用


点击+新仓库,选择从URL上克隆

要是出现“这是一个无效的源路径/URL”首先要看看git是不是没开
点击进入偏好设施后选择Git打开从git获取的途径

要是这个设置了还是不行的话进入“网络”把已有的主机名称移除
这样就可以了

相信大家对这个界面已经很熟悉了下面使用sourceTree就不介绍了
网友评论