<?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 Infinite Script</title><link>https://www.infinitescript.com/tags/git/</link><description>Recent content in Git on Infinite Script</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 29 Feb 2016 14:06:31 +0000</lastBuildDate><atom:link href="https://www.infinitescript.com/tags/git/index.xml" rel="self" type="application/rss+xml"/><item><title>Signing commits using GPG in Git</title><link>https://www.infinitescript.com/2016/02/signing-commits-using-gpg-in-git/</link><pubDate>Mon, 29 Feb 2016 14:06:31 +0000</pubDate><guid>https://www.infinitescript.com/2016/02/signing-commits-using-gpg-in-git/</guid><description>&lt;p&gt;Git is cryptographically secure, but it&amp;rsquo;s not foolproof. If you take work from others on the internet and want to verify that commits are actually from a trusted source, Git can sign and verify work with GPG.&lt;/p&gt;&#10;&lt;h2 id="generate-a-gpg-key"&gt;Generate a GPG Key&lt;/h2&gt;&#10;&lt;p&gt;To sign anything, you first need GPG installed and a personal key. Check whether you already have one:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;gpg --list-keys&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-plain" data-lang="plain"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;/home/hzxie/.gnupg/pubring.gpg&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;------------------------------&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;pub 4096R/3DBF9592 2016-02-15&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;uid Haozhe Xie (GPG key for GitHub) &amp;lt;noreply@haozhexie.com&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sub 4096R/BFEB9969 2016-02-15&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;If the list is empty, generate a key. On GPG 2.1 and later, &lt;code&gt;--full-generate-key&lt;/code&gt; lets you choose the algorithm and a 4096-bit RSA key, which GitHub recommends:&lt;/p&gt;</description></item><item><title>How to Setup and Use Github in Ubuntu</title><link>https://www.infinitescript.com/2013/06/how-to-setup-and-use-github-in-ubuntu/</link><pubDate>Sun, 30 Jun 2013 06:22:21 +0000</pubDate><guid>https://www.infinitescript.com/2013/06/how-to-setup-and-use-github-in-ubuntu/</guid><description>&lt;p&gt;If you are or want to be an open-source developer, you must try GitHub. It is a new hosted Git repository service that&amp;rsquo;s being called a &amp;ldquo;social network&amp;rdquo; for programmers. It is basically a distributed version control system designed to handle everything from small to very large projects with speed and efficiency.&lt;/p&gt;&#10;&lt;h2 id="setup-ssh-key"&gt;Setup SSH key&lt;/h2&gt;&#10;&lt;h3 id="generate-ssh-key"&gt;Generate SSH Key&lt;/h3&gt;&#10;&lt;p&gt;Suppose you have created your account at &lt;a href="https://github.com/"&gt;GitHub&lt;/a&gt; and now want to work with it from your terminal.&lt;/p&gt;</description></item></channel></rss>