<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Git on Brandon Risberg</title><link>https://brisberg.dev/wiki/version-control/git/</link><description>Recent content in Git on Brandon Risberg</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://brisberg.dev/wiki/version-control/git/index.xml" rel="self" type="application/rss+xml"/><item><title>Git on Mac</title><link>https://brisberg.dev/wiki/version-control/git/git-on-mac/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://brisberg.dev/wiki/version-control/git/git-on-mac/</guid><description>&lt;p&gt;I am investigating how to support automatic authentication for two different GitHub logins.&lt;/p&gt;
&lt;h2 id="apples-forked-version-of-git"&gt;Apple&amp;rsquo;s forked version of Git&lt;/h2&gt;
&lt;p&gt;Apple maintains their own version of Git for deployment on their machines. One of the things this does is force include a &lt;code&gt;gitconfig&lt;/code&gt; file. (located at &lt;code&gt;/Applications/Xcode.app/Contents/Developer/usr/share/git-core/gitconfig&lt;/code&gt;)&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$ git --version
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# git version 2.24.3 (Apple Git-128)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This config sets the &lt;code&gt;credential.helper&lt;/code&gt; field to &lt;code&gt;osxkeychain&lt;/code&gt; to use the built-in OSX keychain helper.&lt;/p&gt;
&lt;p&gt;Normally this would be fine for a single GitHub login across your whole system, but there is no way to override this.&lt;/p&gt;</description></item></channel></rss>