<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>swx-satoshi-kaneyasu</author_name>
  <author_url>https://blog.hatena.ne.jp/swx-satoshi-kaneyasu/</author_url>
  <blog_title>サーバーワークスエンジニアブログ</blog_title>
  <blog_url>https://blog.serverworks.co.jp/</blog_url>
  <categories>
    <anon>Git</anon>
    <anon>AI駆動開発</anon>
    <anon>GitHub</anon>
  </categories>
  <description>こんにちは。 アプリケーションサービス本部、DevOps担当の兼安です。 今回は、AIとGitのお話をします。 はじめに 発生する現象の内容 現象が発生する技術的な原因 push 時のグローバル設定で被害を軽減する 最終的にはブランチ保護ルールを設定する はじめに 以前から、AIが不意にmainにpushしてしまう現象はありますが、 最近、feature ブランチを切ったつもりが、git push がなぜか保護ブランチ（main）にpushしてしまう現象に連続して遭遇しました。 なので、その現象と原因についてまとめておこうと思います。 なお、遭遇はしましたが個人の検証環境における話なのでご安心…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.serverworks.co.jp%2Fai-feature-branch-upstream-push-main&quot; title=&quot;AIにfeatureブランチを切ってもらったのに不意にmainにpushされてしまう問題 - サーバーワークスエンジニアブログ&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>https://cdn-ak.f.st-hatena.com/images/fotolife/s/swx-satoshi-kaneyasu/20261110/20261110132914.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-10-17 19:01:41</published>
  <title>AIにfeatureブランチを切ってもらったのに不意にmainにpushされてしまう問題</title>
  <type>rich</type>
  <url>https://blog.serverworks.co.jp/ai-feature-branch-upstream-push-main</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
