gitblit安装使用
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安装使用的更多相关文章
- mac Gitblit安装
jdk下载传送门 gitBlit是java编写的的 第一步 需要安装java jdk 传送门 JDK6的下载地址: http://www.oracle.com/technetwork/java/jav ...
- Linux(Contos7.5)环境搭建之Gitblit安装(三)
1.yum安装git(这一步暂时不清楚是否必要,因为在window上搭建并不需要)
- (转)GitBlit安装
转:https://blog.csdn.net/qq_32599479/article/details/90748371 GitBlit的安装本文是基于Windows 10系统环境,安装和测试GitB ...
- GitBlit (1)-- 在linux 安装 GitBlit 并运行
Git是一款注重速度.数据完整性.分布式支持和非线性工作流的分布式版本控制工具.Git最初由Linus Torvalds在2005年为Linux内核开发而设计,如今已经成为被广泛接受的版本控制系统. ...
- 如何在Linux下使用Gitblit工具创建Git仓库服务
嗨!朋友,今天我们将学习如何在你的Linux服务器或者PC上安装Gitblit工具.首先,我们看看什么是Git,它的功能以及安装Gitblit的步骤.Git是分布式版本控制系统,它强调速度.数据一致性 ...
- 【大话QT之十七】Jenkins介绍及安装使用文档(与Git集成)
文章文件夹结构例如以下: 1> Jenkins与Git相关介绍 2> Jenkins部署安装 3> Gitblit部署安装 4> Jenkins与Git集成使用 5> 项 ...
- Gitblit配置
Gitblit的安装配置及访问-windows (2013-09-11 11:52:31) 转载▼ 分类: android基础 Git 是现在很流行的分布式版本控制工具,github更是人人皆知. ...
- 创建Gitblit本地服务器(For windows )01
1.先下载gitblit 貌似需要FQ,百度云链接https://pan.baidu.com/s/1WUtBswj5TkFFcd_hiFFCcw,提取码: xr9n .因为gitblit是基于jav ...
- 使用Gitblit 搭建Windows Git服务器
使用Gitblit 搭建Windows Git服务器 整理使用Gitblit搭建Git服务器的步骤. 目录 使用Gitblit 搭建Windows Git服务器 目录 下载安装 配置 运行 客户端运行 ...
随机推荐
- input 对伪元素(:before :after)的支持情况
最近做一个自定义视觉效果的Switch组件,用到了 input:radio 和 label,并在label里用伪元素 :before 模拟状态的切换效果. 但是同事评审的时候说可以不用label,直接 ...
- win10 nginx + django +flup 配置
1 安装 Nginx 官网下载,直接点exe启动即可 2 安装django pip install django 注意 新建立项目时 python *****/django-admin.py star ...
- 每天进步一点点—SQL优化
一. SQL优化 1. 通过show status 命令了解各种SQL的运行频率 mysql>show status like 'Com_%'; +----------- ...
- Don't Panic! KRACK 没你想象的那么糟
上海交通大学密码与计算机安全实验室(LoCCS)软件安全小组(GoSSIP)版权所有,转载请与作者取得联系! 著名的计算机学术安全会议CCS在2017年录用了一篇名为Key Reinstallatio ...
- [反汇编练习] 160个CrackMe之028
[反汇编练习] 160个CrackMe之028. 本系列文章的目的是从一个没有任何经验的新手的角度(其实就是我自己),一步步尝试将160个CrackMe全部破解,如果可以,通过任何方式写出一个类似于注 ...
- 《从0到1》读书笔记第一章"未来的挑战"第2记:做老子还是做孙子
从1到N VS 从0到1 - 别让自己的小鸡鸡抓在别人的手上 近几年国内互联网创业上非常流行一种C2C(也就是Copy to China - 复制到中国)的创业模式,打的就是一个时间差和地域差.将在国 ...
- ArcGIS 10.1系列产品 升级安装至 ArcGIS 10.2
概要 分享ArcGIS10.1系列产品(包括desktop.engine.server)升级到ArcGIS10.2的过程,并提供安装ArcGIS10.2安装的详细文档下载链接和crack需要的文件: ...
- 可在 html5 游戏中使用的 js 工具库
可在 html5 游戏中使用的 js 工具库 作者: 木頭 时间: September 21, 2014 分类: Utilities,Game 使用 cocos2d-js 3.0 开发游戏项目两三个月 ...
- [Node.js] 關於 console.log 的格式化輸出
Node.js 當中的 console.log,除了基本字串的輸出之外,還可以利用 %s.%d.%j 格式化的輸出,就讓我們來看些例子吧! 一.範例1 (字串輸出):console.js consol ...
- tail 监控日志文件
ail命令可以输出文件的尾部内容,默认情况下它显示文件的最后十行.它常用来动态监视文件的尾部内容的增长情况,比如用来监视日志文件的变化.与tail命令对应的是head命令,用来显示文件头部内容. 常用 ...