Pro Git 2nd Edition 2.1.413Branches Basic Branching and Merging Basic Branching Basic Merging Basic Merge Conflicts Branch Management Changing a branch name Branching Workflows Long-Running Branches Topic Branches Remote Branches Git on a Server Putting the Bare Repository on a Server Small Setups Generating Your SSH Public Key Setting Up the Server Git Daemon Smart HTTP GitWeb GitLab Installation Administration Basic the basic Git tools on Linux via a binary installer, you can generally do so through the package management tool that comes with your distribution. If you’re on Fedora (or any closely-related RPM-based0 码力 | 731 页 | 21.49 MB | 1 年前3
Pro Git 2nd Edition 2.1.413. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 Branch Management. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110 Generating Your SSH Public Key . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . the basic Git tools on Linux via a binary installer, you can generally do so through the package management tool that comes with your distribution. If you’re on Fedora (or any closely-related RPM-based0 码力 | 501 页 | 17.96 MB | 1 年前3
Pro Git 2nd Edition 2.1.413 Branches Basic Branching and Merging Basic Branching Basic Merging Basic Merge Conflicts Branch Management Changing a branch name Branching Workflows Long-Running Branches Topic Branches Remote Branches Git on a Server Putting the Bare Repository on a Server Small Setups Generating Your SSH Public Key Setting Up the Server Git Daemon Smart HTTP GitWeb GitLab Installation Administration Basic the basic Git tools on Linux via a binary installer, you can generally do so through the package management tool that comes with your distribution. If you’re on Fedora (or any closely- related RPM-based0 码力 | 691 页 | 13.35 MB | 1 年前3
Gitea v1.21.1 中文文档您需要两个有效的 TLS 证书,一个用于数据库实例(数据库服务器),一个用于 Gitea 实例(数据库客户 端)。两个证书都必须由受信任的 CA 签名。 数据库证书必须在 X509v3 Extended Key Usage 扩展属性中包含 TLS Web Server Authentication ,而客户端证 书则需要在相应的属性中包含 TLS Web Client Authentication /path/to/postgresql.key : 数据库实例私钥 /path/to/root.crt : 用于验证客户端证书的CA证书链 2. 在 postgresql.conf 中添加以下选项: 1. ssl = on 2. ssl_ca_file = '/path/to/root.crt' 3. ssl_cert_file = '/path/to/postgresql.crt' 4. ssl_key_file '/path/to/postgresql.key' 5. ssl_min_protocol_version = 'TLSv1.2' 3. 根据 PostgreSQL 的要求,调整凭据的所有权和权限: 1. chown postgres:postgres /path/to/root.crt /path/to/postgresql.crt /path/to/postgresql.key 2. chmod 06000 码力 | 303 页 | 3.88 MB | 1 年前3
Pro Git 中文版 第2版 2.1.66会从不同的文件中读取同一个配置(例如:/etc/gitconfig 与 ~/.gitconfig)。 这种情况下,Git 会使用它找到的每一个变量的最后一个配置。 你可以通过输入 git config <key>: 来检查 Git 的某一项配置: $ git config user.name John Doe 由于 Git 会从多个文件中读取同一配置变量的不同值,因此你可能会在其中看到意料之外的值 Windows 上,该程 序包含于 MSysGit 软件包中。 $ ssh-keygen -o Generating public/private rsa key pair. Enter file in which to save the key (/home/schacon/.ssh/id_rsa): Created directory '/home/schacon/.ssh'. Enter passphrase identification has been saved in /home/schacon/.ssh/id_rsa. Your public key has been saved in /home/schacon/.ssh/id_rsa.pub. The key fingerprint is: d0:82:24:8e:d7:f1:bb:9b:33:53:96:93:49:da:9b:e3 schacon@mylaptop0 码力 | 501 页 | 19.30 MB | 1 年前3
Pro Git 中文版 第2版 2.1.66会从不同的文件中读取同一个配置(例 如:/etc/gitconfig 与 ~/.gitconfig)。 这种情况下,Git 会使用它找到的 每一个变量的最后一个配置。 你可以通过输入 git config <key>: 来检查 Git 的某一项配置: $ git config user.name John Doe 由于 Git 会从多个文件中读取同一配置变量的不同值,因此你可能会在其中看到意料之外的 Windows 上,该程序包含于 MSysGit 软件包中。 $ ssh-keygen -o Generating public/private rsa key pair. Enter file in which to save the key (/home/schacon/.ssh/id_rsa): Created directory '/home/schacon/.ssh'. Enter passphrase identification has been saved in /home/schacon/.ssh/id_rsa. Your public key has been saved in /home/schacon/.ssh/id_rsa.pub. The key fingerprint is: d0:82:24:8e:d7:f1:bb:9b:33:53:96:93:49:da:9b:e3 schacon@mylaptop0 码力 | 670 页 | 13.59 MB | 1 年前3
git 操作手册nginx['ssl_cer�ficate'] = "/etc/gitlab/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 ★添加用户的ssh密钥 由用户登录gitlab界面,自行添加ssh key 首先在linux服务器上生成用户的ssh密钥对文件 # ssh-keygen -t rsa -b 2048 -C "cof@cof-lee.com" -P "" -f cof-sshkey #直接生成key文件及公钥.pub文件,无需交互,-C指定密钥的描述信息,-P指定 加密密钥的密码,-f指定生成的文件名,生成的密钥文件: Se�ngs→Webhooks→Add new webhook Webhook URL: h�p://10.99.1.241:32433/api/v2/job_templates/42/gitlab/ Webhook Key: vHRMIUlRQql9khxfr23sVlaeeMaLA7pZEmbKmmECeFL3bgF7kP Trigger可选择“Push events”(表示更新代码时),All branches表示所有分支,也0 码力 | 35 页 | 1.69 MB | 1 年前3
共 7 条
- 1













