git对版本文件库的管理的工作目录
2018-01-03 18:07
190 查看
git 对于版本文件的管理算法和处理的脚本路径:(在安装目录下面)
total 1880
drwxr-xr-x 2 root root 4096 Oct 27 19:17 bin
drwxr-xr-x 19 root root 4096 Nov 21 09:30 embedded
drwxr-xr-x 4 root root 4096 Nov 21 09:30 etc
drwxr-xr-x 2 root root 4096 Oct 27 19:36 init
-rw-r--r-- 1 root root 1858327 Mar 8 2017 LICENSE
drwxr-xr-x 2 root root 4096 Oct 27 19:17 LICENSES
drwxr-xr-x 2 root root 4096 Oct 27 19:36 service
drwxr-xr-x 8 root root 4096 Oct 27 19:36 sv
drwxr-xr-x 3 root root 4096 Oct 27 19:36 var
-rw-r--r-- 1 root root 19560 Mar 8 2017 version-manifest.json
-rw-r--r-- 1 root root 8696 Mar 8 2017 version-manifest.txt
[root@ gitlab]# cd embedded/
[root@ embedded]# ll
total 84
drwxr-xr-x 2 root root 12288 Oct 27 19:17 bin
drwxr-xr-x 2 root root 4096 Oct 27 19:17 conf
drwxr-xr-x 6 root root 4096 Oct 27 19:36 cookbooks
drwxr-xr-x 2 root root 4096 Nov 21 09:30 etc
drwxr-xr-x 2 root root 4096 Jan 3 15:22 html
drwxr-xr-x 21 root root 4096 Oct 27 19:17 include
drwxr-xr-x 11 root root 12288 Oct 27 19:17 lib
drwxr-xr-x 3 root root 4096 Oct 27 19:17 libexec
drwxr-xr-x 2 root root 4096 Mar 8 2017 logs
drwxr-xr-x 5 root root 4096 Oct 27 19:17 man
drwxr-xr-x 2 root root 4096 Nov 21 09:30 nodes
drwxr-xr-x 4 root root 4096 Oct 27 19:17 postgresql
drwxr-xr-x 2 root root 4096 Oct 27 19:17 sbin
drwxr-xr-x 3 root root 4096 Oct 27 19:17 selinux
drwxr-xr-x 6 root root 4096 Oct 27 19:17 service
drwxr-xr-x 18 root root 4096 Oct 27 19:17 share
drwxr-xr-x 4 root root 4096 Oct 27 19:17 ssl
[root@sncdpreweb87 embedded]# cd etc
[root@sncdpreweb87 etc]#
[root@sncdpreweb87 etc]# ll
total 8
-rw-r--r-- 1 root root 26 Oct 27 19:36 90-omnibus-gitlab-net.core.somaxconn.conf
-rwxr-xr-x 1 root root 144 Oct 27 19:36 gitconfig
[root@ etc]# vi gitconfig
[root@ etc]# .
[root@sncdpreweb87 embedded]# cd nodes/
[root@sncdpreweb87 nodes]# ll
total 180
-rw-r--r-- 1 root root 182417 Nov 21 09:31 sncdpreweb87.json
[root@sncdpreweb87 nodes]# vi sncdpreweb87.json
[root@sncdpreweb87 nodes]#
[root@sncdpreweb87 nodes]#
[root@sncdpreweb87 nodes]# cd ..
[root@sncdpreweb87 embedded]# cd cookbooks/
[root@sncdpreweb87 cookbooks]# ll
total 28
drwxr-xr-x 4 root root 4096 Nov 21 09:30 cache
-rw-r--r-- 1 root root 39 Mar 8 2017 dna.json
drwxr-xr-x 9 root root 4096 Oct 27 19:17 gitlab
drwxr-xr-x 3 root root 4096 Oct 27 19:17 package
drwxr-xr-x 6 root root 4096 Oct 27 19:17 runit
-rw-r--r-- 1 root root 52 Mar 8 2017 show-config.json
-rw-r--r-- 1 root root 1026 Mar 8 2017 solo.rb
[root@ cookbooks]# cd gitlab/
[root@ gitlab]# ll
total 32
drwxr-xr-x 2 root root 4096 Oct 27 19:17 attributes
drwxr-xr-x 2 root root 4096 Oct 27 19:17 definitions
drwxr-xr-x 3 root root 4096 Oct 27 19:17 files
drwxr-xr-x 2 root root 4096 Oct 27 19:17 libraries
-rw-r--r-- 1 root root 334 Mar 8 2017 metadata.rb
drwxr-xr-x 2 root root 4096 Oct 27 19:17 recipes
drwxr-xr-x 2 root root 4096 Oct 27 19:17 resources
drwxr-xr-x 3 root root 4096 Oct 27 19:17 templates
[root@ gitlab]#
[root@ gitlab]#
[root@ gitlab]# cd ..
[root@ cookbooks]# cd package/
[root@ package]# ll
total 4
drwxr-xr-x 2 root root 4096 Oct 27 19:17 attributes
[root@ package]# cd attributes/
[root@ attributes]# ll
total 4
-rwxr-xr-x 1 root root 918 Mar 8 2017 default.rb
[root@ attributes]# cd ..
[root@ package]# cd ..
[root@ cookbooks]# cd runit/
[root@ runit]# ll
total 28
drwxr-xr-x 2 root root 4096 Oct 27 19:17 attributes
drwxr-xr-x 2 root root 4096 Oct 27 19:17 definitions
drwxr-xr-x 3 root root 4096 Oct 27 19:17 files
-rw-r--r-- 1 root root 369 Mar 8 2017 metadata.rb
-rw-r--r-- 1 root root 7840 Mar 8 2017 README.md
drwxr-xr-x 2 root root 4096 Oct 27 19:17 recipes
[root@ runit]#
首先是embeded下面的etc 文件夹下面的getconfig文件:
[pack]
threads = 1
[receive]
fsckObjects = true
[repack]
writeBitmaps = true
[transfer]
hideRefs=^refs/tmp/
hideRefs=^refs/keep-around/这个文件配置进程中对文件压缩的(bitmap)处理的线程数目=1;是否对bitmap修改 writebitmap=true
然后就是很重要的文件夹:cookbooks
这里面保存着package存储管理的元数据模版,attribute属性存储模版,文件模版等等信息。
total 1880
drwxr-xr-x 2 root root 4096 Oct 27 19:17 bin
drwxr-xr-x 19 root root 4096 Nov 21 09:30 embedded
drwxr-xr-x 4 root root 4096 Nov 21 09:30 etc
drwxr-xr-x 2 root root 4096 Oct 27 19:36 init
-rw-r--r-- 1 root root 1858327 Mar 8 2017 LICENSE
drwxr-xr-x 2 root root 4096 Oct 27 19:17 LICENSES
drwxr-xr-x 2 root root 4096 Oct 27 19:36 service
drwxr-xr-x 8 root root 4096 Oct 27 19:36 sv
drwxr-xr-x 3 root root 4096 Oct 27 19:36 var
-rw-r--r-- 1 root root 19560 Mar 8 2017 version-manifest.json
-rw-r--r-- 1 root root 8696 Mar 8 2017 version-manifest.txt
[root@ gitlab]# cd embedded/
[root@ embedded]# ll
total 84
drwxr-xr-x 2 root root 12288 Oct 27 19:17 bin
drwxr-xr-x 2 root root 4096 Oct 27 19:17 conf
drwxr-xr-x 6 root root 4096 Oct 27 19:36 cookbooks
drwxr-xr-x 2 root root 4096 Nov 21 09:30 etc
drwxr-xr-x 2 root root 4096 Jan 3 15:22 html
drwxr-xr-x 21 root root 4096 Oct 27 19:17 include
drwxr-xr-x 11 root root 12288 Oct 27 19:17 lib
drwxr-xr-x 3 root root 4096 Oct 27 19:17 libexec
drwxr-xr-x 2 root root 4096 Mar 8 2017 logs
drwxr-xr-x 5 root root 4096 Oct 27 19:17 man
drwxr-xr-x 2 root root 4096 Nov 21 09:30 nodes
drwxr-xr-x 4 root root 4096 Oct 27 19:17 postgresql
drwxr-xr-x 2 root root 4096 Oct 27 19:17 sbin
drwxr-xr-x 3 root root 4096 Oct 27 19:17 selinux
drwxr-xr-x 6 root root 4096 Oct 27 19:17 service
drwxr-xr-x 18 root root 4096 Oct 27 19:17 share
drwxr-xr-x 4 root root 4096 Oct 27 19:17 ssl
[root@sncdpreweb87 embedded]# cd etc
[root@sncdpreweb87 etc]#
[root@sncdpreweb87 etc]# ll
total 8
-rw-r--r-- 1 root root 26 Oct 27 19:36 90-omnibus-gitlab-net.core.somaxconn.conf
-rwxr-xr-x 1 root root 144 Oct 27 19:36 gitconfig
[root@ etc]# vi gitconfig
[root@ etc]# .
[root@sncdpreweb87 embedded]# cd nodes/
[root@sncdpreweb87 nodes]# ll
total 180
-rw-r--r-- 1 root root 182417 Nov 21 09:31 sncdpreweb87.json
[root@sncdpreweb87 nodes]# vi sncdpreweb87.json
[root@sncdpreweb87 nodes]#
[root@sncdpreweb87 nodes]#
[root@sncdpreweb87 nodes]# cd ..
[root@sncdpreweb87 embedded]# cd cookbooks/
[root@sncdpreweb87 cookbooks]# ll
total 28
drwxr-xr-x 4 root root 4096 Nov 21 09:30 cache
-rw-r--r-- 1 root root 39 Mar 8 2017 dna.json
drwxr-xr-x 9 root root 4096 Oct 27 19:17 gitlab
drwxr-xr-x 3 root root 4096 Oct 27 19:17 package
drwxr-xr-x 6 root root 4096 Oct 27 19:17 runit
-rw-r--r-- 1 root root 52 Mar 8 2017 show-config.json
-rw-r--r-- 1 root root 1026 Mar 8 2017 solo.rb
[root@ cookbooks]# cd gitlab/
[root@ gitlab]# ll
total 32
drwxr-xr-x 2 root root 4096 Oct 27 19:17 attributes
drwxr-xr-x 2 root root 4096 Oct 27 19:17 definitions
drwxr-xr-x 3 root root 4096 Oct 27 19:17 files
drwxr-xr-x 2 root root 4096 Oct 27 19:17 libraries
-rw-r--r-- 1 root root 334 Mar 8 2017 metadata.rb
drwxr-xr-x 2 root root 4096 Oct 27 19:17 recipes
drwxr-xr-x 2 root root 4096 Oct 27 19:17 resources
drwxr-xr-x 3 root root 4096 Oct 27 19:17 templates
[root@ gitlab]#
[root@ gitlab]#
[root@ gitlab]# cd ..
[root@ cookbooks]# cd package/
[root@ package]# ll
total 4
drwxr-xr-x 2 root root 4096 Oct 27 19:17 attributes
[root@ package]# cd attributes/
[root@ attributes]# ll
total 4
-rwxr-xr-x 1 root root 918 Mar 8 2017 default.rb
[root@ attributes]# cd ..
[root@ package]# cd ..
[root@ cookbooks]# cd runit/
[root@ runit]# ll
total 28
drwxr-xr-x 2 root root 4096 Oct 27 19:17 attributes
drwxr-xr-x 2 root root 4096 Oct 27 19:17 definitions
drwxr-xr-x 3 root root 4096 Oct 27 19:17 files
-rw-r--r-- 1 root root 369 Mar 8 2017 metadata.rb
-rw-r--r-- 1 root root 7840 Mar 8 2017 README.md
drwxr-xr-x 2 root root 4096 Oct 27 19:17 recipes
[root@ runit]#
首先是embeded下面的etc 文件夹下面的getconfig文件:
[pack]
threads = 1
[receive]
fsckObjects = true
[repack]
writeBitmaps = true
[transfer]
hideRefs=^refs/tmp/
hideRefs=^refs/keep-around/这个文件配置进程中对文件压缩的(bitmap)处理的线程数目=1;是否对bitmap修改 writebitmap=true
然后就是很重要的文件夹:cookbooks
这里面保存着package存储管理的元数据模版,attribute属性存储模版,文件模版等等信息。
相关文章推荐
- 【代码管理】GitHub超详细图文攻略 - Git客户端下载安装 GitHub提交修改源码工作流程 Git分支 标签 过滤 Git版本工作流
- 【代码管理】GitHub超详细图文攻略 - Git客户端下载安装 GitHub提交修改源码工作流程 Git分支 标签 过滤 Git版本工作流
- 【代码管理】GitHub超详细图文攻略 - Git客户端下载安装 GitHub提交修改源码工作流程 Git分支 标签 过滤 Git版本工作流
- 【代码管理】GitHub超详细图文攻略 - Git客户端下载安装 GitHub提交修改源码工作流程 Git分支 标签 过滤 Git版本工作流
- 【代码管理】GitHub超详细图文攻略 - Git客户端下载安装 GitHub提交修改源码工作流程 Git分支 标签 过滤 Git版本工作流
- 打造前端 Deepin Linux 工作环境——安装 nodejs 环境,git 版本管理
- git 把bin目录和gen目录下的文件从版本管理中移除,并添加到ignore中
- git撤销当前工作目录修改:git reset --hard
- Git版本管理在linux centos下的安装使用(centos)
- Qt create 配置git版本管理
- 分布式版本控制系统Git------git工作区和主要对象
- GitHub超详细图文攻略 - Git客户端下载安装 GitHub提交修改源码工作流程 Git分支 标签 过滤 Git版本工作流
- 开发工具_版本管理Git
- Git 版本管理工具(一)
- Repo和Git 版本管理常用命令总结
- Git分布式版本管理工具--安装,配置
- Git 学习笔记<本地版本库的管理> (二)
- git版本管理工具
- git学习-本地版本库管理命令
- Git之版本管理