Pro Git 2nd Edition 2.1.413Repository Merge Strategies Git Hooks Installing a Hook Client-Side Hooks Server-Side Hooks An Example Git-Enforced Policy Server-Side Hook Client-Side Hooks Summary Git and Other Systems Git truly a master. Chapter 8 is about configuring your custom Git environment. This includes setting up hook scripts to enforce or encourage customized policies and using environment configuration settings to do is put a bare Git repository under your HTTP document root and set up a specific post-update hook, and you’re done (see Git Hooks). At that point, anyone who can access the web server under which0 码力 | 731 页 | 21.49 MB | 1 年前3
Pro Git 2nd Edition 2.1.413 Repository Merge Strategies Git Hooks Installing a Hook Client-Side Hooks Server-Side Hooks An Example Git-Enforced Policy Server-Side Hook Client-Side Hooks Summary Git and Other Systems Git truly a master. Chapter 8 is about configuring your custom Git environment. This includes setting up hook scripts to enforce or encourage customized policies and using environment configuration settings to do is put a bare Git repository under your HTTP document root and set up a specific post-update hook, and you’re done (see Git Hooks). At that point, anyone who can access the web server under which0 码力 | 691 页 | 13.35 MB | 1 年前3
Pro Git 2nd Edition 2.1.413truly a master. Chapter 8 is about configuring your custom Git environment. This includes setting up hook scripts to enforce or encourage customized policies and using environment configuration settings to do is put a bare Git repository under your HTTP document root and set up a specific post-update hook, and you’re done (see Git Hooks). At that point, anyone who can access the web server under which hooks/post-update.sample hooks/post-update $ chmod a+x hooks/post-update That’s all. The post-update hook that comes with Git by default runs the appropriate command (git update-server-info) to make HTTP0 码力 | 501 页 | 17.96 MB | 1 年前3
Gitea v1.21.1 中文文档PowerPC等架构。 代码托管:Gitea⽀持创建和管理仓库、浏览提交历史和代码⽂件、审查和合并代码提交、管理协作者、管理分 ⽀等。它还⽀持许多常见的Git特性,⽐如标签、Cherry-pick、hook、集成协作⼯具等。 轻量级和快速: Gitea 的设计目标之一就是轻量级和快速响应。它不像一些大型的代码托管平台那样臃肿,因 此在性能方面表现出色,适用于资源有限的服务器环境。由于其轻量级设计,Gitea 启动每个主要版本的二进制文件(例如 1.1.4 → 1.2.3 → 1.3.4 → 1.4.2 → 等)以迁移数据库。 如果自定义或配置路径已更改,请运行 Rewrite all update hook of repositories 。 将 gogs-repositories/ 重命名为 gitea-repositories/ 将 gogs-data/ 重命名为 gitea-data/ 启用清理 hook_task 任务。 RUN_AT_START : false: 在启动时运行清理 hook_task(如果启用)。 SCHEDULE : @midnight: Cron语法,用于清理 hook_task 表。 CLEANUP_TYPE OlderThan OlderThan 或 PerWebhook 方法来清理 hook_task,可以按年龄(即 hook_task0 码力 | 303 页 | 3.88 MB | 1 年前3
Pro Git 中文版 第2版 2.1.66下远程 Git 仓库中的每一个文件的每一个版本都将被拉取下来。 事实上,如果你的服务器的磁盘坏掉了,你通常 可以使用任何一个克隆下来的用户端来重建服务器上的仓库 (虽然可能会丢失某些服务器端的钩子(hook)设 置,但是所有版本的数据仍在,详见 在服务器上搭建 Git )。 克隆仓库的命令是 git clone。 比如,要克隆 Git 的链接库 libgit2,可以用下面的命令: hooks/update exited with error code 1 error: hook declined to update refs/heads/master To git@gitserver:project.git ! [remote rejected] master -> master (hook declined) error: failed to push some refs to 1 error: hook declined to update refs/heads/master 第一行是我们的脚本输出的,剩下两行是 Git 在告诉我们 update 脚本退出时返回了非零值因而推送遭到了拒 绝。 最后一点: To git@gitserver:project.git ! [remote rejected] master -> master (hook declined) 0 码力 | 501 页 | 19.30 MB | 1 年前3
Pro Git 中文版 第2版 2.1.66Git 仓库中的每 一个文件的每一个版本都将被拉取下来。 事实上,如果你的服务器的磁盘坏 掉了,你通常可以使用任何一个克隆下来的用户端来重建服务器上的仓库 (虽然可能会丢失某些服务器端的钩子(hook)设置,但是所有版本的数据 仍在,详见 在服务器上搭建 Git )。 克隆仓库的命令是 git clone。 比如,要克隆 Git 的链接库 libgit2, 可以用下面的命令: hooks/update exited with error code 1 error: hook declined to update refs/heads/master To git@gitserver:project.git ! [remote rejected] master -> master (hook declined) error: failed to push some refs to 1 error: hook declined to update refs/heads/master 第一行是我们的脚本输出的,剩下两行是 Git 在告诉我们 update 脚本退出时 返回了非零值因而推送遭到了拒绝。 最后一点: To git@gitserver:project.git ! [remote rejected] master -> master (hook declined) 0 码力 | 670 页 | 13.59 MB | 1 年前3
共 6 条
- 1













