GitLal+sourceTree版本号管理

 GitLab+sourceTree版本号管理



  假设把代码提交到github上,仅仅能是公开的,除非你花钱了,但是我不想花钱,因此我选择了gitLab做为gitserver,使用gitLab的详细过程例如如下:
1.申请一个gitLab帐号https://gitlab.com
git

2.而后登陆进去。新建project,点击小狼头;github

3.使用gitLab和使用其它client同样。需要创建一个上传RSA公钥,打开终端输入:ssh-keygen。此时生成了一对公钥和私钥。app

终端命令例如如下:ssh

《1》appledeMacBook-Air:~ wsy$ ssh-keygengitlab

一路回车。生产RSA公钥和私钥
spa

《2》appledeMacBook-Air:~ wsy$ cat .ssh/id_rsa.pubserver

打开公钥,拷贝到gitLab上

4.加入公钥
get

点击ADD SSH Key,把刚才生成的公钥加入进去。OK


5.复制project路径进行clone。比方    git@gitlab.com:wangsuyan/ReadNameList.gitit

6.在终端输入, git clone git@gitlab.com:wangsuyan/ReadNameList.git 
class

我选择的是直接克隆到桌面


7.新建一个project,把project建到刚才克隆的项目下

8.在App Store上下载一个Soure Tree做为gitclient。

9.下载好Soure Tree后,直接把克隆的项目拖入到 Soure Tree中;

10.好了,一切OK,

11.接下来就是 Soure Tree 的使用了。详细使用和其它的 gitclient相似

12.提交久可以了。

相关文章
相关标签/搜索