<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>dackdive</author_name>
  <author_url>https://blog.hatena.ne.jp/dackdive/</author_url>
  <blog_title>dackdive's blog</blog_title>
  <blog_url>https://dackdive.hateblo.jp/</blog_url>
  <categories>
    <anon>git</anon>
  </categories>
  <description>いきなり結論 ローカルで新しく作成したブランチを push するときに -u オプションをつける。 # ブランチを切る $ git checkout -b new_branch # (new_branch内で作業・コミット) # -u オプションを付けて実行する $ git push -u origin new_branch 経緯など masterからブランチ切って作業してそれをリモートリポジトリにpushする、という作業の時に 毎回こういった操作をやってました。 # ブランチの作成 $ git checkout -b new_branch Switched to a new branch '…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdackdive.hateblo.jp%2Fentry%2F2014%2F09%2F10%2F121945&quot; title=&quot; [git]ローカルからpushした時に自動的に追跡ブランチにする - dackdive&amp;#39;s blog&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>2014-09-10 12:19:45</published>
  <title> [git]ローカルからpushした時に自動的に追跡ブランチにする</title>
  <type>rich</type>
  <url>https://dackdive.hateblo.jp/entry/2014/09/10/121945</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
