Pro Git 2nd Edition 2.1.413$ git clone --bare /path/to/git_project gitproject.git $ cd gitproject.git $ mv hooks/post-update.sample hooks/post-update $ chmod a+x hooks/post-update That’s all. The post-update hook that comes with want to use the bundled hook scripts, you’ll have to rename them; their file names all end with .sample. To enable a hook script, put a file in the hooks subdirectory of your .git directory that is named easy to read, even if you can’t necessarily write it. However, any language will work – all the sample hook scripts distributed with Git are in either Perl or Bash, so you can also see plenty of examples0 码力 | 731 页 | 21.49 MB | 1 年前3
Pro Git 2nd Edition 2.1.413$ git clone --bare /path/to/git_project gitproject.git $ cd gitproject.git $ mv hooks/post-update.sample hooks/post-update $ chmod a+x hooks/post-update That’s all. The post-update hook that comes with want to use the bundled hook scripts, you’ll have to rename them; their file names all end with .sample. To enable a hook script, put a file in the hooks subdirectory of your .git directory that is named easy to read, even if you can’t necessarily write it. However, any language will work – all the sample hook scripts distributed with Git are in either Perl or Bash, so you can also see plenty of examples0 码力 | 501 页 | 17.96 MB | 1 年前3
Pro Git 2nd Edition 2.1.413 $ git clone --bare /path/to/git_project gitproject.git $ cd gitproject.git $ mv hooks/post-update.sample hooks/post-update $ chmod a+x hooks/post-update That’s all. The post-update hook that comes with want to use the bundled hook scripts, you’ll have to rename them; their file names all end with .sample. To enable a hook script, put a file in the hooks subdirectory of your .git directory that is named easy to read, even if you can’t necessarily write it. However, any language will work – all the sample hook scripts distributed with Git are in either Perl or Bash, so ▪ ▪ ▪ you can also see plenty0 码力 | 691 页 | 13.35 MB | 1 年前3
Gitea v1.21.1 中文文档/privacy.html https://raw.githubusercontent.com/go- gitea/gitea/main/contrib/legal/privacy.html.sample 现在,你需要编辑该页面以满足你的需求。特别是,你必须更改电子邮件地址、网址以及与 “Your Gitea Instance” 相关的引用,以匹配你的情况。 请务必不要放置会暗示 Gitea 启用用户同步 这个选项启用了一个周期性任务,用于将Gitea用户与LDAP服务器进行同步。默认的同步周期是每24小 时, 但您可以在app.ini文件中进行更改。 有关此部分的详细说明,请参阅sample app.ini 的 _cron.sync_external_users_ 部分的注释。前面提到的_User Search Base_和_User Filter_ 设置将限制哪些用户可以使用Gitea以及哪些用户将被同步。0 码力 | 303 页 | 3.88 MB | 1 年前3
Pro Git 中文版 第2版 2.1.66$ git clone --bare /path/to/git_project gitproject.git $ cd gitproject.git $ mv hooks/post-update.sample hooks/post-update $ chmod a+x hooks/post-update 这样就可以了。 Git 自带的 post-update 挂钩会默认执行合适的命令(git u shell 脚本,其中一些还混杂了 Perl 代码,不过,任何正确命名 的可执行脚本都可以正常使用 —— 你可以用 Ruby 或 Python,或任何你熟悉的语言编写它们。 这些示例的名字 都是以 .sample 结尾,如果你想启用它们,得先移除这个后缀。 把一个正确命名(不带扩展名)且可执行的文件放入 .git 目录下的 hooks 子目录中,即可激活该钩子脚本。 这样一来,它就能被 Git 调用。接下来,我们会讲解常用的钩子脚本类型。0 码力 | 501 页 | 19.30 MB | 1 年前3
Pro Git 中文版 第2版 2.1.66$ git clone --bare /path/to/git_project gitproject.git $ cd gitproject.git $ mv hooks/post-update.sample hooks/post-update $ chmod a+x hooks/post-update 这样就可以了。 Git 自带的 post-update 挂钩会默认执行合适的命令(git u shell 脚本,其中一些还混杂了 Perl 代码,不过,任何正确命名的可执行脚本都可以正常使用 —— 你可以用 Ruby 或 Python,或任何你熟悉的语言编写它们。 这些示例的名字都是以 .sample 结尾,如果你想启用它们,得先移除这个后缀。 把一个正确命名(不带扩展名)且可执行的文件放入 .git 目录下的 hooks 子 目录中,即可激活该钩子脚本。 这样一来,它就能被 Git 调用。接下来,我们0 码力 | 670 页 | 13.59 MB | 1 年前3
共 6 条
- 1













