<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>wyumikokh</author_name>
  <author_url>https://blog.hatena.ne.jp/wyumikokh/</author_url>
  <blog_title>kokh log</blog_title>
  <blog_url>https://tech.ymkokh.com/</blog_url>
  <categories>
    <anon>claude</anon>
    <anon>cli</anon>
    <anon>git</anon>
    <anon>shell-script</anon>
    <anon>productivity</anon>
  </categories>
  <description>背景 ブランチを切るたびに命名で固まる。考えるのが面倒で、結局 tmp とか wip-2 みたいな雑な名前にしてしまうことも多かった。 Claude Code 内の /branch スラッシュコマンドに頼っていたが、呼ぶには Claude Code を立ち上げる必要があり、起動コストが重い。 そのため git status 並みのレイテンシで叩けるサブコマンドをつくった。 つくったもの git br-name というコマンド。差分から 1 秒でブランチ名を予測し、そのまま git checkout -b まで走るシェルスクリプト。Claude Code は起動せず、curl で Anthrop…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.ymkokh.com%2Fentry%2F2026%2F05%2F16%2F183210&quot; title=&quot;ブランチ名を予測して切り替えるgitサブコマンドをつくった - kokh log&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>2026-05-16 18:32:10</published>
  <title>ブランチ名を予測して切り替えるgitサブコマンドをつくった</title>
  <type>rich</type>
  <url>https://tech.ymkokh.com/entry/2026/05/16/183210</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
