zoukankan      html  css  js  c++  java
  • GitLal+sourceTree版本号管理

     GitLab+sourceTree版本号管理



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

    2.然后登录进去。新建project,点击小狼头;

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

    终端命令例如以下:

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

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

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

    打开公钥,拷贝到gitLab上

    4.加入公钥

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


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

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

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


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

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

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

    10.好了,一切OK,

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

    12.提交久能够了。


  • 相关阅读:
    centos中文乱码修改字符编码使用centos支持中文
    java知识总结-26
    java知识总结-25
    java知识总结-24
    java知识总结-23
    java知识总结-22
    java知识总结-21
    java知识总结-20
    java知识总结-19
    java知识总结-18
  • 原文地址:https://www.cnblogs.com/mfrbuaa/p/5078330.html
Copyright © 2011-2022 走看看