<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>briteming</author_name>
  <author_url>https://blog.hatena.ne.jp/briteming/</author_url>
  <blog_title>blog.hatena.ne.jp, 分类: https://briteming.hatenablog.com/categories</blog_title>
  <blog_url>https://briteming.hatenablog.com/</blog_url>
  <categories>
    <anon>git</anon>
  </categories>
  <description>当你用 Git 管理代码时， 是不是每次提交 commit 前都会重复性的做同一件事情（打开终端，运行各个相关测试命令）? 是不是每次 push 代码到服务器后也重复性的做同一件事情（打开终端，更新代码到服务器，然后 ssh 进服务器，重启相关后台进程）? ...... 而 Git 的 hooks 功能就可以帮你自动运行这些手动重复、冗烦的命令。 Hooks 是什么？ Git 具有在特定事件发生前后执行特定脚本的功能（类似于监听事件、触发器）， Git Hooks 就是那些在 Git 特定事件（如 commit、push、receive 等）前后被触发运行的脚本（shell、python、ru…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbriteming.hatenablog.com%2Fentry%2F2024%2F11%2F16%2F014333&quot; title=&quot;git之hooks - blog.hatena.ne.jp, 分类: https://briteming.hatenablog.com/categories&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-11-16 01:43:33</published>
  <title>git之hooks</title>
  <type>rich</type>
  <url>https://briteming.hatenablog.com/entry/2024/11/16/014333</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
