<p>Hello, this is your host, Archer72 for Hacker Public Radio</p>
<p>In this episode, I get a crash course on git, and thought it
would make a good episode.  Not actually on git itself, but
how to use it on Github and Gitlab.</p>
<p>First off, I am looking for a job, so I thought it would be
a great time to brush up on my git knowledge and make a show
too.   Of course, I am no git expert by any means, but as it
has been said in comments Hacker Public Radio is my memory.</p>
<p>You will want to create and ssh key for each Git instance,
in this case I will use both Github and Gitlab.   A few
other sites to host Git files which are Hacker Public Radio&#39;s own
<a href="https://repo.anhonesthost.net/HPR" title="Gitea on HPR">Gitea on HPR</a>,
<a href="https://notabug.org" title="Notabug for Git">Notabug</a> and
<a href="https://codeberg.org" title="Codeberg for Git">Codeberg</a></p>
<p>Now lets get started. </p>
<ul>
<li><code>ssh-keygen</code> will create an ed25519 key pair</li>
<li>several years ago this was not yet the default</li>
<li>add entry to <code>~/.ssh/config</code> for each git instance</li>
</ul>
<pre><code>Host github.com
    <span class="hljs-keyword">User</span> <span class="hljs-title">git</span>
    IdentityFile ~/.ssh/github-ricemark20

Host gitlab.com
    <span class="hljs-keyword">User</span> <span class="hljs-title">git</span>
    IdentityFile ~/.ssh/gitlab-archer72
</code></pre><h1 id="ssh-keys">SSH Keys</h1>
<p><code>ssh-add ~/.ssh/git-key</code> (not .pub)</p>
<h1 id="git">Git</h1>
<p> • GPG</p>
<pre><code>   -<span class="ruby"> gpg --full-generate-key
</span>   -<span class="ruby"> gpg --list-public-keys
</span>   -<span class="ruby"> <span class="hljs-number">40</span> character string
</span>   -<span class="ruby"> git config --global user.signingkey XXXXPublicKey
</span>   -<span class="ruby"> git config --global commit.gpgsign <span class="hljs-literal">true</span>
</span>   -<span class="ruby"> gpg --armor --export XXXXPublicKey
</span>     -<span class="ruby"> copy output to Github <span class="hljs-keyword">or</span> Gitlab, including &lt;…<span class="hljs-keyword">BEGIN</span> PGP…&gt;</span>
</code></pre><h2 id="gitlab">Gitlab</h2>
<ul>
<li>Avatar &gt;
Edit Profile &gt;
SSH Keys &gt;
Add key (on the right side)</li>
<li><a href="https://gitlab.com/-/user_settings/ssh_keys" title="Gitlab - SSH keys">Gitlab - SSH keys</a></li>
<li><code>cat ~/.ssh/gitlab-key.pub</code></li>
<li>Add Key</li>
<li>git remote set-url origin git@gitlab.com/user/gitlab-repo.git</li>
<li>Edit Profile &gt;
GPG Keys &gt;
Add key (on the right side)</li>
<li><a href="https://gitlab.com/-/user_settings/gpg_keys" title="Gitlab - GPG keys">Gitlab - GPG keys</a></li>
<li>copy and add public key from 
<code>gpg --list-public-keys</code> (40 Characters)</li>
</ul>
<h2 id="github">Github</h2>
<ul>
<li>Avatar &gt;
Settings &gt;
SSH and GPG Keys &gt;
New SSH key</li>
<li><a href="https://github.com/settings/keys" title="Github - keys">Github - keys</a></li>
<li><code>cat ~/.ssh/github-key.pub</code></li>
<li><a href="https://github.com/settings/ssh/new" title="Github - New SSH key">Github - New SSH key</a></li>
<li>Title, Key &gt;
Add SSH key</li>
<li>git remote set-url origin git@github.com:user/github-repo.git</li>
<li>Avatar &gt;
Settings &gt;
SSH and GPG Keys &gt;
New GPG key</li>
<li><a href="https://github.com/settings/gpg/new" title="Github - New GPG key">Github - New GPG key</a></li>
<li>Title, Key &gt;
Add GPG key</li>
<li>copy and add public key from 
<code>gpg --list-public-keys</code> (40 Characters)</li>
</ul>
<pre><code>&lt;Claude.io&gt;


Create <span class="hljs-keyword">a</span> <span class="hljs-built_in">new</span> repository named something like resume <span class="hljs-keyword">or</span> my-resume
Upload your HTML resume <span class="hljs-built_in">file</span> <span class="hljs-keyword">and</span> name <span class="hljs-keyword">it</span> index.html
Go <span class="hljs-built_in">to</span> your repository Settings → Pages
Under <span class="hljs-string">"Source,"</span> select <span class="hljs-string">"Deploy from a branch"</span>
Choose <span class="hljs-string">"main"</span> branch <span class="hljs-keyword">and</span> <span class="hljs-string">"/ (root)"</span> <span class="hljs-built_in">folder</span>
Your resume will be available <span class="hljs-keyword">at</span> <span class="hljs-keyword">https</span>://yourusername.github.io/resume
</code></pre><p><a href="https://ricemark20.github.io/Resume/" title="Github.io - ricemark20">Github.io - ricemark20</a></p>
