第一步: 配置git lab

Git lab 安装后配置步骤

  1. 安装Git-2.11-64-bit.exe

[email protected] MINGW64 /d/gitCode

$ git --version

git version 2.11.1.windows.1

 

  1. 登录git lab服务器

http://172.32.12.202/Sycro/docs

Git lab ssh配置步骤,进入Profile settings

 

gitBook 安装配置和发布流程(git version 2.11.1 /node v4.0.0)

 

3.SSH Keys 点击 generate it.

gitBook 安装配置和发布流程(git version 2.11.1 /node v4.0.0)

4.目录>>右键>>git bush here>>

gitBook 安装配置和发布流程(git version 2.11.1 /node v4.0.0)

5.输入

ssh-****** -t rsa -C "[email protected]"

gitBook 安装配置和发布流程(git version 2.11.1 /node v4.0.0)

6.输入 生成SSH的路径

D:\gitCode\zhy.ssh

 

7.然后把公钥 zhy.ssh.pub 的内容注册到SSH Key

gitBook 安装配置和发布流程(git version 2.11.1 /node v4.0.0)

 

 

 

 

 

第二步:Git Book editor 安装步骤(git version 2.11.1 /node v4.0.0)

 

先安装node.js

C:\Program Files\nodejs>node -v

v4.0.0

再下载安装

file://172.32.12.236/h/Software/GitBook.Editor/GitBook.Editor.Setup.exe

 

 

 

安装NPM  在任意处,CMD下

$ npm install gitbook-cli –g

 

cd  /d/gitCode/docs

 

gitbook build

打开 gitbook软件,不用log in ,直接 Do that later,就可以进行编辑上传,  编辑好后,需要发布,告诉我,我统一发布.

 

gitBook 安装配置和发布流程(git version 2.11.1 /node v4.0.0)

 

 

 

 

发布步骤:

gitBook 安装配置和发布流程(git version 2.11.1 /node v4.0.0)

注意是HTTP

gitBook 安装配置和发布流程(git version 2.11.1 /node v4.0.0)

 

Git bash

 

 

Git clone http://172.32.12.202/Sycro/docs.git

 

Git pull origin master

Git commit –am “update 20180913”

 

Git push origin master

 

 

拷贝D:\GitLab\docs  到 241 D:\Nginx_32\MES_docs\html

http://172.32.12.241:5000/shu-ju-ku-xiang-mu.html

 

 

相关文章:

  • 2021-12-28
  • 2021-05-04
  • 2021-08-29
  • 2021-11-20
  • 2021-05-05
  • 2021-08-04
  • 2021-05-27
  • 2021-07-02
猜你喜欢
  • 2022-12-23
  • 2021-07-31
  • 2021-08-30
  • 2022-01-07
  • 2021-10-31
  • 2021-12-10
  • 2022-12-23
相关资源
相似解决方案