<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>marusho_1266</author_name>
  <author_url>https://blog.hatena.ne.jp/marusho_1266/</author_url>
  <blog_title>備忘録のようなもの</blog_title>
  <blog_url>https://marusho1266.com/</blog_url>
  <categories>
    <anon>Git</anon>
  </categories>
  <description>Githubのアカウントで仕事用と個人用を同一PCで取り扱う必要が出てきた。 あまり、特に気にせずどちらものアカウントからリポジトリをクローンして作業をしていたのだが、いざプッシュをする時にエラーが発生した。 原因を調査すると、どうやら同一PC内で複数のGitHubアカウントを取り扱う場合は、諸々設定が必要のようだ。 今回は、その諸々で四苦八苦したので覚書。 なぜプッシュできない？ そもそもなぜプッシュ出来なかったのか。 Gitは同一PCで複数アカウントを扱うことを考慮されていないようで、基本的にはユーザー情報を1つしか持てないよう。 なので、アカウントBとしてクローンしたリポジトリをアカウン…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmarusho1266.com%2Fentry%2F2025%2F05%2F27%2F210000&quot; title=&quot;同一PCでGitアカウントを複数利用する方法について - 備忘録のようなもの&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/m/marusho_1266/20250527/20250527161129.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-05-27 21:00:00</published>
  <title>同一PCでGitアカウントを複数利用する方法について</title>
  <type>rich</type>
  <url>https://marusho1266.com/entry/2025/05/27/210000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
