<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Knowledge Base (Posts about github)</title><link>https://bgstack15.ddns.net/blog/</link><description></description><atom:link href="https://bgstack15.ddns.net/blog/categories/github.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2025 &lt;a href="mailto:bgstack15@gmail.com"&gt;bgstack15&lt;/a&gt; 
&lt;a rel="license" href="https://www.gnu.org/licenses/gpl-3.0.html"&gt;
&lt;img alt="GNU General Public License v3.0"
style="border-width:0; margin-bottom:12px;"
src="https://bgstack15.ddns.net/.images/gplv3-127x51.png"&gt;&lt;/a&gt;</copyright><lastBuildDate>Mon, 11 Aug 2025 12:45:38 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>My github credential for git</title><link>https://bgstack15.ddns.net/blog/posts/2025/08/11/my-github-credential-for-git/</link><dc:creator>bgstack15</dc:creator><description>&lt;p&gt;A few years ago, Github decided passwords were not good enough, and made me use a static password that must be stored somewhere on the filesystem. How is that better than a password I type every ~hour?&lt;/p&gt;
&lt;p&gt;So here's how I automated it so I never have to &lt;code&gt;cat token-github&lt;/code&gt; for pasting into the auth form when pushing to the cruddy old github. I push changes there only for projects that already exist there; I don't use github for my own projects.&lt;/p&gt;
&lt;p&gt;You set up &lt;code&gt;~/.gitconfig&lt;/code&gt; like so.&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="k"&gt;[includeIf "hasconfig:remote.*.url:https://github.com/**"]&lt;/span&gt;&lt;span class="w"&gt;&lt;/span&gt;
&lt;span class="w"&gt;   &lt;/span&gt;&lt;span class="na"&gt;path&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;~/.gitconfig-github&lt;/span&gt;&lt;span class="w"&gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;And then &lt;code&gt;~/.gitconfig-github&lt;/code&gt; like the following.&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="err"&gt;#&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;References&lt;/span&gt;&lt;span class="err"&gt;:&lt;/span&gt;&lt;span class="w"&gt;&lt;/span&gt;
&lt;span class="err"&gt;#&lt;/span&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="n"&gt;man&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;git&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="w"&gt;&lt;/span&gt;
&lt;span class="err"&gt;#&lt;/span&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="nl"&gt;https&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;//&lt;/span&gt;&lt;span class="n"&gt;medium&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;com&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nv"&gt;@jogarcia&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;different&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;git&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;configurations&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="k"&gt;for&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;different&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;remote&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;repositories&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;276759&lt;/span&gt;&lt;span class="n"&gt;c4f14c&lt;/span&gt;&lt;span class="w"&gt;&lt;/span&gt;
&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="n"&gt;core&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="w"&gt;&lt;/span&gt;
&lt;span class="w"&gt;   &lt;/span&gt;&lt;span class="n"&gt;askPass&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;home&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;bgstack15&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;gitconfig&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;github&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sh&lt;/span&gt;&lt;span class="w"&gt;&lt;/span&gt;
&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="n"&gt;credential&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="w"&gt;&lt;/span&gt;
&lt;span class="w"&gt;   &lt;/span&gt;&lt;span class="n"&gt;username&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;bgstack15&lt;/span&gt;&lt;span class="w"&gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;And then finally &lt;code&gt;~/.gitconfig-github.sh&lt;/code&gt;.&lt;/p&gt;
&lt;div class="code"&gt;&lt;table class="codetable"&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://bgstack15.ddns.net/blog/posts/2025/08/11/my-github-credential-for-git/#-1"&gt;&lt;code data-line-number="1"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;&lt;span class="ch"&gt;#!/bin/sh&lt;/span&gt;
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="linenos linenodiv"&gt;&lt;a href="https://bgstack15.ddns.net/blog/posts/2025/08/11/my-github-credential-for-git/#-2"&gt;&lt;code data-line-number="2"&gt;&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class="code"&gt;&lt;code&gt;cat /path/to/token-github
&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;I didn't want to deal with how git might parse spaces in askPass=, so it was logical to use a shell script.&lt;/p&gt;
&lt;p&gt;And now Github gets what it wants (a password stored somewhere on the filesystem), and I get what I want (auth without copy-pasting).&lt;/p&gt;
&lt;h2&gt;References&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href="https://bgstack15.ddns.net/blog/outbound/https:/medium.com/@jogarcia/different-git-configurations-for-different-remote-repositories-276759c4f14c"&gt;Different git configurations for different remote repositories | by Jose Garcia | Medium&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;</description><category>cli</category><category>git</category><category>github</category><guid>https://bgstack15.ddns.net/blog/posts/2025/08/11/my-github-credential-for-git/</guid><pubDate>Mon, 11 Aug 2025 12:38:00 GMT</pubDate></item><item><title>Chicago95 icon set for LibreOffice now upstreamed</title><link>https://bgstack15.ddns.net/blog/posts/2021/08/16/chicago95-icon-set-for-libreoffice-now-upstreamed/</link><dc:creator>bgstack15</dc:creator><description>&lt;p&gt;The upstream folks at Chicago95 total conversion mod for Xfce desktop
environment on GNU/Linux have graciously upstreamed my &lt;a href="https://bgstack15.ddns.net/blog/posts/2021/04/13/chicago95-icon-theme-for-libreoffice/"&gt;Chicago95 icon theme
for LibreOffice&lt;/a&gt;! Check it out in the official repository:
&lt;a href="https://github.com/grassmunk/Chicago95/tree/master/Extras/libreoffice-%0Achicago95-iconset"&gt;https://github.com/grassmunk/Chicago95/tree/master/Extras/libreoffice-
chicago95-iconset&lt;/a&gt;. Now if only we could get them to make a new release, so I
could go update the dpkgs in the apt repo in the &lt;a href="https://build.opensuse.org/project/show/home:bgstack15:Chicago95"&gt;Open Build
Service&lt;/a&gt;...
&lt;a href="https://bgstack15.ddns.net/blog/2021/04/writer-chicago95.png"&gt;&lt;img alt="LibreOffice Writer with the Chicago95
iconset" src="https://bgstack15.ddns.net/blog/2021/04/writer-chicago95.png"&gt;&lt;/a&gt;&lt;/p&gt;</description><category>chicago95</category><category>git</category><category>github</category><category>opensource</category><guid>https://bgstack15.ddns.net/blog/posts/2021/08/16/chicago95-icon-set-for-libreoffice-now-upstreamed/</guid><pubDate>Mon, 16 Aug 2021 13:25:41 GMT</pubDate></item><item><title>#movingtogitlab</title><link>https://bgstack15.ddns.net/blog/posts/2018/06/06/movingtogitlab/</link><dc:creator>bgstack15</dc:creator><description>&lt;h2&gt;#movingtogitlab&lt;/h2&gt;
&lt;p&gt;&lt;a href="https://bgstack15.ddns.net/blog/2018/06/github-ms-and-gitlab.jpg"&gt;&lt;img alt="Meme about github and
ms" src="https://bgstack15.ddns.net/blog/2018/06/github-ms-and-gitlab.jpg"&gt;&lt;/a&gt; I do not use social media, unless github, gitlab, or Wordpress.com
count. But, here is my hashtag for the week:
&lt;a href="https://twitter.com/hashtag/movingtogitlab"&gt;#movingtogitlab&lt;/a&gt;. With the
disheartening news about a week ago of a malevolent force taking over the
community darling github.com, I have decided to move my projects to
&lt;a href="https://gitlab.com/users/bgstack15/projects"&gt;gitlab&lt;/a&gt;. Plus, I was awakened to
the fact that github's value-added bits are closed source. Well, what an
interesting situation! And I was just getting a few stars on some of my
repositories too. Check out the traffic of the gitlab github importer:
&lt;a href="https://monitor.gitlab.net/dashboard/db/github-importer?orgId=1"&gt;https://monitor.gitlab.net/dashboard/db/github-importer?orgId=1&lt;/a&gt;. I will be
sharing over the next few posts some tools I used to facilitate this process.
I had some help with the gist one, and I used a simple tool for the git repos.
Someday I may even run my own instance of gitlab.&lt;/p&gt;</description><category>github</category><category>gitlab</category><category>opensource</category><guid>https://bgstack15.ddns.net/blog/posts/2018/06/06/movingtogitlab/</guid><pubDate>Wed, 06 Jun 2018 15:45:47 GMT</pubDate></item></channel></rss>