<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>y-kamiya</author_name>
  <author_url>https://blog.hatena.ne.jp/y-kamiya/</author_url>
  <blog_title>MEMOcho-</blog_title>
  <blog_url>https://jsapachehtml.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>開発をしているとブランチの移動を行うことが多いが、いちいちブランチ名を確かめてコピペなどめんどくさい。なので簡単にするために以下のようにシェルのfunctionを定義しといた。 function co() { git branch | grep $1 | xargs git checkout }これでブランチ名の一部を入れればローカルにあるブランチに移動できる。２つ以上のブランチがgrepにひっかかる場合はエラーになるものの、ある時期に頻繁に移動するブランチは限られていることが多いので一意な文字列になる部分を覚えておけばよい。ついでに追跡ブランチから選んで移動する場合もあるので定義した。 fu…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjsapachehtml.hatenablog.com%2Fentry%2F2014%2F03%2F26%2F235900&quot; title=&quot;gitのブランチ移動を効率化 - MEMOcho-&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>http://ecx.images-amazon.com/images/I/41shA4AJs9L.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-03-26 23:59:00</published>
  <title>gitのブランチ移動を効率化</title>
  <type>rich</type>
  <url>https://jsapachehtml.hatenablog.com/entry/2014/03/26/235900</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
