1.下载地址

http://www.gitblit.com/

2.安装jdk(自行安装)

3.解压gitblit

# tar -zxvf gitblit-1.8.0.tar.gz

4.配置
# cd gitblit-1.8.0/data

# vi gitblit.properties

添加以下信息:

# SINCE 1.7.0
include = defaults.properties
server.httpPort=81
server.httpBindInterface=192.168.28.130
server.httpsBindInterface=localhost

5.启动和停止

1)前台启动

# cd gitblit-1.8.0

# ./gitblit.sh

2)后台启动

# nohup ./gitblit.sh &

3)停止

# ./gitblit-stop.sh

6.访问

http://192.168.28.130:81

登陆密码:admin/admin

7.创建用户

8.创建团队

9.创建版本库

10.分配项目给其他人员

先分配给组,再分配给组中的成员

11. 把项目提交到创库中

首先需要在需要提交代码的机器上安装git

使用命令如下:

localhost:gitClient mhx$ git clone http://admin@192.168.28.130:81/r/firstDemo.git

Cloning into 'firstDemo'...

warning: You appear to have cloned an empty repository.

localhost:gitClient mhx$ ll

-bash: ll: command not found

localhost:gitClient mhx$ ls

firstDemo gitrepo

localhost:gitClient mhx$ cd firstDemo/

localhost:firstDemo mhx$ ls

localhost:firstDemo mhx$ cp -r /Users/mhx/Downloads/registerdiscovery .

localhost:firstDemo mhx$ ll

-bash: ll: command not found

localhost:firstDemo mhx$ ls

registerdiscovery

localhost:firstDemo mhx$ cd registerdiscovery/

localhost:registerdiscovery mhx$ ls

HELP.md mvnw mvnw.cmd pom.xml src

localhost:registerdiscovery mhx$ cd ..

localhost:firstDemo mhx$ ls

registerdiscovery

localhost:firstDemo mhx$ git add *

localhost:firstDemo mhx$ git commit -m "add new file"

[master (root-commit) cafacf4] add new file

16 files changed, 677 insertions(+)

create mode 100644 registerdiscovery/.DS_Store

create mode 100644 registerdiscovery/.gitignore

create mode 100644 registerdiscovery/.mvn/wrapper/MavenWrapperDownloader.java

create mode 100644 registerdiscovery/.mvn/wrapper/maven-wrapper.jar

create mode 100644 registerdiscovery/.mvn/wrapper/maven-wrapper.properties

create mode 100755 registerdiscovery/mvnw

create mode 100644 registerdiscovery/mvnw.cmd

create mode 100644 registerdiscovery/pom.xml

create mode 100644 registerdiscovery/src/.DS_Store

create mode 100644 registerdiscovery/src/main/.DS_Store

create mode 100644 registerdiscovery/src/main/java/.DS_Store

create mode 100644 registerdiscovery/src/main/java/com/.DS_Store

create mode 100644 registerdiscovery/src/main/java/com/maohx/.DS_Store

create mode 100644 registerdiscovery/src/main/java/com/maohx/registerdiscovery/RegisterdiscoveryApplication.java

create mode 100644 registerdiscovery/src/main/resources/application.properties

create mode 100644 registerdiscovery/src/test/java/com/maohx/registerdiscovery/RegisterdiscoveryApplicationTests.java

localhost:firstDemo mhx$ git push

Password for 'http://admin@192.168.28.130:81':

fatal: Authentication failed for 'http://admin@192.168.28.130:81/r/firstDemo.git/'

localhost:firstDemo mhx$ push

-bash: push: command not found

localhost:firstDemo mhx$ git push

Password for 'http://admin@192.168.28.130:81':

Counting objects: 33, done.

Delta compression using up to 4 threads.

Compressing objects: 100% (26/26), done.

Writing objects: 100% (33/33), 50.55 KiB | 12.64 MiB/s, done.

Total 33 (delta 5), reused 0 (delta 0)

remote: Resolving deltas: 100% (5/5)

remote: Updating references: 100% (1/1)

To http://192.168.28.130:81/r/firstDemo.git

* [new branch]      master -> master

localhost:firstDemo mhx$

12.创建分支

localhost:firstDemo mhx$ ls

registerdiscovery

localhost:firstDemo mhx$ git checkout -b embrace1.0

Switched to a new branch 'embrace1.0'

localhost:firstDemo mhx$ git branch

* embrace1.0

master

localhost:firstDemo mhx$ git commit -m "add new branch"

On branch embrace1.0

nothing to commit, working tree clean

localhost:firstDemo mhx$ git push -u origin embrace1.0

Total 0 (delta 0), reused 0 (delta 0)

remote: Updating references: 100% (1/1)

To http://192.168.28.130:81/r/firstDemo.git

* [new branch]      embrace1.0 -> embrace1.0

Branch embrace1.0 set up to track remote branch embrace1.0 from origin.

localhost:firstDemo mhx$

gitblit安装使用的更多相关文章

  1. mac Gitblit安装

    jdk下载传送门 gitBlit是java编写的的 第一步 需要安装java jdk 传送门 JDK6的下载地址: http://www.oracle.com/technetwork/java/jav ...

  2. Linux(Contos7.5)环境搭建之Gitblit安装(三)

    1.yum安装git(这一步暂时不清楚是否必要,因为在window上搭建并不需要)

  3. (转)GitBlit安装

    转:https://blog.csdn.net/qq_32599479/article/details/90748371 GitBlit的安装本文是基于Windows 10系统环境,安装和测试GitB ...

  4. GitBlit (1)-- 在linux 安装 GitBlit 并运行

    Git是一款注重速度.数据完整性.分布式支持和非线性工作流的分布式版本控制工具.Git最初由Linus Torvalds在2005年为Linux内核开发而设计,如今已经成为被广泛接受的版本控制系统. ...

  5. 如何在Linux下使用Gitblit工具创建Git仓库服务

    嗨!朋友,今天我们将学习如何在你的Linux服务器或者PC上安装Gitblit工具.首先,我们看看什么是Git,它的功能以及安装Gitblit的步骤.Git是分布式版本控制系统,它强调速度.数据一致性 ...

  6. 【大话QT之十七】Jenkins介绍及安装使用文档(与Git集成)

    文章文件夹结构例如以下: 1> Jenkins与Git相关介绍 2> Jenkins部署安装 3> Gitblit部署安装 4> Jenkins与Git集成使用 5> 项 ...

  7. Gitblit配置

    Gitblit的安装配置及访问-windows (2013-09-11 11:52:31) 转载▼   分类: android基础 Git 是现在很流行的分布式版本控制工具,github更是人人皆知. ...

  8. 创建Gitblit本地服务器(For windows )01

    1.先下载gitblit  貌似需要FQ,百度云链接https://pan.baidu.com/s/1WUtBswj5TkFFcd_hiFFCcw,提取码: xr9n .因为gitblit是基于jav ...

  9. 使用Gitblit 搭建Windows Git服务器

    使用Gitblit 搭建Windows Git服务器 整理使用Gitblit搭建Git服务器的步骤. 目录 使用Gitblit 搭建Windows Git服务器 目录 下载安装 配置 运行 客户端运行 ...

随机推荐

  1. javascript --- 兼容的那些事

    绑定事件 var addEvent = function( obj, type, fn ) { if (obj.addEventListener) obj.addEventListener( type ...

  2. 更改 vux Tabbar TabbarItem标题下方的文字激活时的颜色

    步骤一: 打开文件build/webpack.base.conf.js, 找到modeule.exports = vuxLoader, 修改如下(并保存) module.exports = vuxLo ...

  3. Lead软件项目半年感受

    Lead一个项目快半年了,整体来说是个辛苦活. 除了自己的研发进度,还要负责对上,对下,对外的交流.这里记录一些感受.     对上的交流,除了确保正确理解老大的安排.就是确保老大在和他的lead以及 ...

  4. C语言-多重背包问题

    多重背包问题 问题:有N种物品和一个容量为V的背包.第i种物品最多有n[i]件可用,每件费用是c[i],价值是w[i].求解将哪些物品装入背包可使这些物品的费用总和不超过背包容量,且价值总和最大. 分 ...

  5. Use the command of tar to multi-part archive method.

    We usually meet the package too large to upload internat space when upload have a limited .So we nee ...

  6. 今天遇到一个git码云同步的问题

    一开始是因为eclipse编码不同意导致乱码,所以我和师弟就想统一都用UTF-8的,师弟统一好了,让我pull一下,pull的时候有冲突,因为我和师弟都修改了其中一个文件,然后我这边就删除了那个文件再 ...

  7. Ipython基础功能

    ipython:交互式的python命令行 直接在终端敲命令即可进入 安装:pip install ipython 使用:在终端敲“ipython” 与python解释器的使用方法一致 TAB键自动补 ...

  8. kubernetes调度之pod优先级和资源抢占

    系列目录 Pod可以拥有优先级.优先意味着相对于其它pod某个pod更为重要.如果重要的pod不能被调度,则kubernetes调度器会优先于(驱离)低优先级的pod来让处于pending状态的高优先 ...

  9. 按照HashMap中value值进行排序

    import java.io.BufferedReader; import java.io.FileInputStream; import java.io.FileNotFoundException; ...

  10. 深入理解Java:注解(Annotation)自定义注解入门(转载)

    要深入学习注解,我们就必须能定义自己的注解,并使用注解,在定义自己的注解之前,我们就必须要了解Java为我们提供的元注解和相关定义注解的语法. 元注解: 元注解的作用就是负责注解其他注解.Java5. ...