zoukankan      html  css  js  c++  java
  • 集腋成裘-12-git使用-01创建库

    一、git安装教程

      git安装比较简单,选择好安装路径,直接默认下一步即可

      1:检查git是否安装成功

      

    二、SourceTree工具

    1:下载&安装

      安装过程中如何免注册? 

      在C:UsersAdministratorAppDataLocalAtlassianSourceTree文件里放入新建(或修改)accounts.json并将以下内容复制到其中后保存。

    [
    
      {
    
        "$id": "1",
    
        "$type": "SourceTree.Api.Host.Identity.Model.IdentityAccount, SourceTree.Api.Host.Identity",
    
        "Authenticate": true,
    
        "HostInstance": {
    
          "$id": "2",
    
          "$type": "SourceTree.Host.Atlassianaccount.AtlassianAccountInstance, SourceTree.Host.AtlassianAccount",
    
          "Host": {
    
            "$id": "3",
    
            "$type": "SourceTree.Host.Atlassianaccount.AtlassianAccountHost, SourceTree.Host.AtlassianAccount",
    
            "Id": "atlassian account"
    
          },
    
          "BaseUrl": "https://id.atlassian.com/"
    
        },
    
        "Credentials": {
    
          "$id": "4",
    
          "$type": "SourceTree.Model.BasicAuthCredentials, SourceTree.Api.Account",
    
          "Username": "",
    
          "Email": null
    
        },
    
        "IsDefault": false
    
      }
    
    ]
    View Code

     三、把代码迁入到服务器上

      1:进入source tree —> 文件 —> 克隆/新建 —> 创建仓库 —>选择本机上的项目

    .

    创建完仓库后先不提交,获取远程仓库的url(这里暂时使用GitHub创建的仓库)

     配置远端服务器地址 

    四、正式搭建

      地址:http://tfs.yango.com.cn 

      

     

      1:先使用Gogs在该地址上创建一个仓库。

       http://tfs.yango.com.cn:80/BPMTeam/YangoBPM.git

      2:按照上面的步骤创建和配置

       

  • 相关阅读:
    nvidia tx1使用记录--基本环境搭建
    STL hashtable阅读记录
    Linux strace命令
    转一篇:Reactor模式
    C++ 模板特化以及Typelist的相关理解
    C++ 内联函数inline
    迭代器失效的几种情况总结
    C++ Class与Struct的区别
    C++中string.find()函数,string.find_first_of函数与string::npos
    C/C++ 中长度为0的数组
  • 原文地址:https://www.cnblogs.com/YK2012/p/10376316.html
Copyright © 2011-2022 走看看