Pro Git 2nd Edition 2.1.413set the read/write permissions as you would for any other shared directory. We’ll discuss how to export a bare repository copy for this purpose in Getting Git on a Server. This is also a nice option cryptography. In order for a repository to be served over the Git protocol, you must create a git-daemon-export-ok file — the daemon won’t serve a repository without that file in it — but, other than that, there you the general idea of what’s involved. In order to initially set up any Git server, you have to export an existing repository into a new bare repository — a repository that doesn’t contain a working0 码力 | 731 页 | 21.49 MB | 1 年前3
Pro Git 2nd Edition 2.1.413set the read/write permissions as you would for any other shared directory. We’ll discuss how to export a bare repository copy for this purpose in Getting Git on a Server. This is also a nice option for cryptography. In order for a repository to be served over the Git protocol, you must create a git-daemon-export-ok file — the daemon won’t serve a repository without that file in it — but, other than that, there you the general idea of what’s involved. In order to initially set up any Git server, you have to export an existing repository into a new bare repository — a repository that doesn’t contain a working0 码力 | 501 页 | 17.96 MB | 1 年前3
Pro Git 2nd Edition 2.1.413 set the read/write permissions as you would for any other shared directory. We’ll discuss how to export a bare repository copy for this purpose in Getting Git on a Server. This is also a nice option cryptography. In order for a repository to be served over the Git protocol, you must create a git-daemon-export-ok file — the daemon won’t serve a repository without that file in it — but, other than that, there you the general idea of what’s involved. In order to initially set up any Git server, you have to export an existing repository into a new bare repository — a repository that doesn’t contain a working0 码力 | 691 页 | 13.35 MB | 1 年前3
Pro Git 中文版 第2版 2.1.66这是包含在 Git 里的一个特殊的守护进程;它监听在一个特定的端口(9418),类似于 SSH 服务,但是访问无需任何授权。 要让版本库支持 Git 协议,需要先创建一个 git-daemon-export-ok 文件 —— 它是 Git 协议守护进程为这个版本库提供服务的必要条件 —— 但是除此之外没有任何安全措施。 要么谁都 可以克隆这个版本库,要么谁也不能。 这意味着,通常不能通过 Git 协议推送。 守护进程化并实现监控。 接下来,你需要告诉 Git 哪些仓库允许基于服务器的无授权访问。 你可以在每个仓库下创建一个名为 git- daemon-export-ok 的文件来实现。 $ cd /path/to/project.git $ touch git-daemon-export-ok 该文件将允许 Git 提供无需授权的项目访问服务。 Smart HTTP 我们一般通过 SSH 进行授权访问,通过 GIT_PROJECT_ROOT /srv/git SetEnv GIT_HTTP_EXPORT_ALL ScriptAlias /git/ /usr/lib/git-core/git-http-backend/ 115 如果留空 GIT_HTTP_EXPORT_ALL 这个环境变量,Git 将只对无授权客户端提供带 git-daemon-export-ok 文件的版本库,就像 Git 守护进程一样。 最后,如果想让0 码力 | 501 页 | 19.30 MB | 1 年前3
Pro Git 中文版 第2版 2.1.66这是包含在 Git 里的一个特殊的守护进程;它监听在一个特 定的端口(9418),类似于 SSH 服务,但是访问无需任何授权。 要让版本库 支持 Git 协议,需要先创建一个 git-daemon-export-ok 文件 —— 它是 Git 协 议守护进程为这个版本库提供服务的必要条件 —— 但是除此之外没有任何安 全措施。 要么谁都可以克隆这个版本库,要么谁也不能。 这意味着,通常不 能通过 。 接下来,你需要告诉 Git 哪些仓库允许基于服务器的无授权访问。 你可以在每 个仓库下创建一个名为 git-daemon-export-ok 的文件来实现。 $ cd /path/to/project.git $ touch git-daemon-export-ok 该文件将允许 Git 提供无需授权的项目访问服务。 SMART HTTP 我们一般通过 SSH 进行授权访问,通过 git:// GIT_PROJECT_ROOT /srv/git SetEnv GIT_HTTP_EXPORT_ALL ScriptAlias /git/ /usr/lib/git-core/git-http-backend/ 如果留空 GIT_HTTP_EXPORT_ALL 这个环境变量,Git 将只对无授权客户端提供 带 git-daemon-export-ok 文件的版本库,就像 Git 守护进程一样。 最后,如果想让0 码力 | 670 页 | 13.59 MB | 1 年前3
Gitea v1.21.1 中文文档Linux 服务,你可以采用 WorkingDirectory 参数来配置工作路 径。 否则,使用环境变量 GITEA_WORK_DIR 来明确指出程序工作和数据存放路径。 1. export GITEA_WORK_DIR=/var/lib/gitea/ 1. cp gitea /usr/local/bin/gitea 可以在 contrib/autocompletion/bash_autocomplete0 码力 | 303 页 | 3.88 MB | 1 年前3
共 6 条
- 1













