一)創建用戶


創建組

將用戶加入到組

二)創建項目


客戶端測試
[root@static ~]# yum -y install git
[root@static ~]# ssh-keygen -t rsa
[root@static ~]# cat .ssh/id_rsa.pub
然后把公鑰放到gogs服務器上
![]
[root@static ~]# git clone git@git.91als.net:administrator/New_Pet.git
Initialized empty Git repository in /root/New_Pet/.git/
The authenticity of host 'git.91als.net (10.2.11.204)' can't be established.
RSA key fingerprint is 5f:86:d1:ad:c5:07:a0:2a:80:f9:98:d3:05:a2:04:9f.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'git.91als.net,10.2.11.204' (RSA) to the list of known hosts.
warning: You appear to have cloned an empty repository.
[root@static ~]# ll New_Pet/
[root@static New_Pet]# git config --global user.name "xionghaihua"
[root@static New_Pet]# git config --global user.email "xionghaihua@91als.com.cn"
[root@static New_Pet]# touch README
[root@static New_Pet]# git add .
[root@static New_Pet]# git commit . -m "add README"
[root@static New_Pet]# git remote add origin git@git.91als.net:administrator/New_Pet.git
[root@static New_Pet]# git push -u origin master
Counting objects: 3, done.
Writing objects: 100% (3/3), 208 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
To git@git.91als.net:administrator/New_Pet.git
* [new branch] master -> master
Branch master set up to track remote branch master from origin.
- 第一部分:Git的基本操作
- 第一章:git軟件的安裝
- 第一節:在centos6.8上安裝git-2.3
- 第二節:在windows上安裝git-bash和TortoiseGit軟件
- 第二章: Git的基本概念
- 第一節:git的基本操作
- 第二節:git的深入理解(內部運行機制)
- 第三章:git的文件管理
- 第一節:文件的添加及提交
- 第二節:文件的刪除、回退等
- 第三節:忽略指定格式的文件
- 第四節:撤銷本地倉庫的修改
- 第四章:git的commit對象深入理解
- 第一節:查看提交歷史(git log)
- 第二節:提交查找(git grep)
- 第三節:git版本庫回退
- 第五章: Git分支管理
- 第一節:分支的概念及基本使用
- 第二節:Git分支管理策略
- 第三節:Git分支合并
- 第四節:推送本地分支到遠程分支
- 第七章: Git常用命令詳解
- 第一節:git fetch命令
- 第二節:git pull命令
- 第三節:git push命令
- 第四節: git merge命令
- 第五節:git rebase命令
- 第八章:遠程倉庫管理
- 第二部分: gitlab版本控制系統
- 第一節:"遠程倉庫”版本回退解決方案
- 第二節:遠程分支和本地分支
- 第九章:Git沖突解決
- 第十章:客戶端操作
- 第十章:git常規操作
- 第一章:安裝gitlab服務器
- 第一節:在centos系統上安裝
- 第二章:配置GitLab服務器
- 第一節:關閉gitlab注冊功能
- 第二節:在gitlab上創建項目、組、用戶
- 第三節:漢化gitlab
- 第四節:gitlab配置郵箱通知
- 第五節:gitlab配置https訪問
- 第三章:使用過程常見的故障
- 第三部分: gogs版本控制系統
- 第一章:在centos6上基于二進制包安裝gogs軟件
- 第二章:gogs服務器的配置
- 第一節:gogs服務器上創建項目、用戶
- 第二節:nginx反代gogs,通過https
- 第三節:gogs啟動腳本
- 第四節:git保存密碼到本地
- 第三章:gogs服務器的備份和恢復
- 第一節:gogs備份操作