Pro Git 2nd Edition 2.1.413
Snapshots, Not Differences Nearly Every Operation Is Local Git Has Integrity Git Generally Only Adds Data The Three States The Command Line Installing Git Installing on Linux Installing on macOS Installing Protocols The Dumb Protocol The Smart Protocol Protocols Summary Maintenance and Data Recovery Maintenance Data Recovery Removing Objects Environment Variables Global Behavior Repository Locations can be copied back up to the server to restore it. Every clone is really a full backup of all the data. Figure 3. Distributed version control diagram Furthermore, many of these systems deal pretty well0 码力 | 731 页 | 21.49 MB | 1 年前3Pro Git 2nd Edition 2.1.413
Snapshots, Not Differences Nearly Every Operation Is Local Git Has Integrity Git Generally Only Adds Data The Three States The Command Line Installing Git Installing on Linux Installing on macOS Installing Protocols The Dumb Protocol The Smart Protocol Protocols Summary Maintenance and Data Recovery Maintenance Data Recovery Removing Objects Environment Variables Global Behavior Repository Locations can be copied back up to the server to restore it. Every clone is really a full backup of all the data. Figure 3. Distributed version control diagram Furthermore, many of these systems deal pretty well0 码力 | 691 页 | 13.35 MB | 1 年前3Pro Git 2nd Edition 2.1.413
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 435 Maintenance and Data Recovery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . can be copied back up to the server to restore it. Every clone is really a full backup of all the data. 12 Figure 3. Distributed version control diagram Furthermore, many of these systems deal pretty • Fully distributed • Able to handle large projects like the Linux kernel efficiently (speed and data size) Since its birth in 2005, Git has evolved and matured to be easy to use and yet retain these0 码力 | 501 页 | 17.96 MB | 1 年前3Gitea v1.21.1 中文文档
--home-dir /home/git \ 19. --create-home \ 20. git 1. mkdir -p /var/lib/gitea/{custom,data,log} 2. chown -R git:git /var/lib/gitea/ 3. chmod -R 750 /var/lib/gitea/ 4. mkdir /etc/gitea 5 RUN_USER = USER-PC$ 。 如果您使用 SQLite3,请将 PATH 更改为包含完整路径: 1. [database] 2. PATH = c:/gitea/data/gitea.db 要注册为Windows服务,首先以Administrator身份运行 cmd ,然后执行以下命令: 1. sc.exe create gitea start= auto gitea/gitea:latest-rootless 镜像作为服务启动。由于没有可用的 数据库,可以使用 SQLite3 来初始化一个。 创建一个名为 data 和 config : 1. mkdir -p gitea/{data,config} 2. cd gitea 3. touch docker-compose.yml 然后将以下内容粘贴到名为 docker-compose0 码力 | 303 页 | 3.88 MB | 1 年前3Pro Git 中文版 第2版 2.1.66
Windows 上使用 Git 2.x 以后的版本,那么还有一个系统级的配置文件,Windows XP 上在 C:\Documents and Settings\All Users\Application Data\Git\config ,Windows Vista 及其以 后的版本在 C:\ProgramData\Git\config 。此文件只能以管理员权限通过 git config -f模块, 这些模块都是使该功能正常工作所必须 的。 你还需要将 /srv/git 的 Unix 用户组设置为 www-data,这样 Web 服务器才能读写该仓库, 因为运行 CGI 脚 本的 Apache 实例默认会以该用户的权限运行: $ chgrp -R www-data /srv/git 接下来我们要向 Apache 配置文件添加一些内容,来让 git-http-backend 作为 Web 'mail' post '/payload' do push = JSON.parse(request.body.read) # parse the JSON # gather the data we're looking for pusher = push["pusher"]["name"] branch = push["ref"] # get a list of all 0 码力 | 501 页 | 19.30 MB | 1 年前3Pro Git 中文版 第2版 2.1.66
上使用 Git 2.x 以后的版本,那么还有一个系统级的配置文件, Windows XP 上 在 C:\Documents and Settings\All Users\Application Data\Git\config , Windows Vista 及 其 以 后 的 版 本 在 C:\ProgramData\Git\config 。此文件只能以管理员权限通过 git config 模块, 这些模块 都是使该功能正常工作所必须的。 你还需要将 /srv/git 的 Unix 用户组设置为 www-data,这样 Web 服务器才 能读写该仓库, 因为运行 CGI 脚本的 Apache 实例默认会以该用户的权限运 行: $ chgrp -R www-data /srv/git 接下来我们要向 Apache 配置文件添加一些内容,来让 git-http-backend 作 'mail' post '/payload' do push = JSON.parse(request.body.read) # parse the JSON # gather the data we're looking for pusher = push["pusher"]["name"] branch = push["ref"] # get a list of all0 码力 | 670 页 | 13.59 MB | 1 年前3git 操作手册
'h�ps://gitlab.cof-lee.com' #设置数据存放路径,默认 /var/opt/gitlab/git-data/repositories git_data_dirs({ "default" => { "path" => "/git-data" } }) #设置备份存放路径及备份默认保存时间,默认 /var/opt/gitlab/backups/ gitlab cof-lee.com.crt" nginx['ssl_cer�ficate_key'] = "/etc/gitlab/gitlab.cof-lee.com.key" EOF # mkdir /git-data # mkdir /git-backup #将证书及密钥文件复制到/etc/gitlab目录下 # gitlab-ctl reconfigure #重0 码力 | 35 页 | 1.69 MB | 1 年前3
共 7 条
- 1