<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>git &amp;mdash; Arturo Linares</title>
    <link>https://arturo.linar.es/tag:git</link>
    <description></description>
    <pubDate>Fri, 19 Jun 2026 09:06:12 +0000</pubDate>
    <item>
      <title>Git log filtering and how to show a better history tree</title>
      <link>https://arturo.linar.es/git-log-filtering-and-how-to-show-a-better-history-tree?pk_campaign=rss-feed</link>
      <description>&lt;![CDATA[git&#xA;&#xA;Some useful commands to find commits using Git:&#xA;!--more--&#xA;Filter by content&#xA;&#xA;Filter by the contents of a commit. Think of it as if you do a git log -p (shows the diff of each commit) and then you search the output.&#xA;&#xA;git log -S var_dump&#xA;&#xA;Filter by commit message&#xA;&#xA;git log --grep &#34;FRB-666&#34;&#xA;&#xA;Filter by author&#xA;&#xA;git log --author &#34;Arturo&#34;&#xA;&#xA;You can use emails and several values:&#xA;&#xA;git log --author &#34;outlook.com|hotmail.com&#34;&#xA;&#xA;Filter by date&#xA;&#xA;Conveniently accepts --before and --afterbrbrgit log --before &#34;2017-06-11&#34;&#xA;&#xA;Git log format&#xA;&#xA;I&#39;ve found that git log is powerful, but sometimes difficult to read. Normally I use this git alias to show a nice tree in the console:&#xA;&#xA;$ git config --global alias.lg&#xA;log --color --graph --pretty=format:&#39;%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)%an%Creset&#39; --abbrev-commit&#xA;&#xA;This will show a tree like this when you type git lgbr&#xA;br&#xA;Terminal with git log tree]]&gt;</description>
      <content:encoded><![CDATA[<p><a href="https://arturo.linar.es/tag:git" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">git</span></a></p>

<p>Some useful commands to find commits using Git:

<strong>Filter by content</strong></p>

<p>Filter by the contents of a commit. Think of it as if you do a <code>git log -p</code> (shows the diff of each commit) and then you search the output.</p>

<p><code>git log -S var_dump</code></p>

<p><strong>Filter by commit message</strong></p>

<p><code>git log --grep &#34;FRB-666&#34;</code></p>

<p><strong>Filter by author</strong></p>

<p><code>git log --author &#34;Arturo&#34;</code></p>

<p>You can use emails and several values:</p>

<p><code>git log --author &#34;outlook.com|hotmail.com&#34;</code></p>

<p><strong>Filter by date</strong></p>

<p>Conveniently accepts <code>--before</code> and <code>--after</code><br><br><code>git log --before &#34;2017-06-11&#34;</code></p>

<h2 id="git-log-format" id="git-log-format">Git log format</h2>

<p>I&#39;ve found that <code>git log</code> is powerful, but sometimes difficult to read. Normally I use this git alias to show a nice tree in the console:</p>

<pre><code class="language-bash">$ git config --global alias.lg
log --color --graph --pretty=format:&#39;%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)&lt;%an&gt;%Creset&#39; --abbrev-commit

</code></pre>

<p>This will show a tree like this when you type <code>git lg</code><br>
<br>
<img src="https://i.snap.as/nusqCYO.png" alt="Terminal with git log tree"/></p>
]]></content:encoded>
      <guid>https://arturo.linar.es/git-log-filtering-and-how-to-show-a-better-history-tree</guid>
      <pubDate>Mon, 04 Nov 2019 06:05:13 +0000</pubDate>
    </item>
    <item>
      <title>Git errors when using Hyper-V</title>
      <link>https://arturo.linar.es/git-errors-when-using-hyper-v?pk_campaign=rss-feed</link>
      <description>&lt;![CDATA[#windows #git&#xA;&#xA;I started having some issues when using git inside a Linux VM while setting up an experimental Drupal development environment. I wasn&#39;t able to clone repositories because I was getting some errors saying the remote host hanged unexpectedly, or couldn&#39;t push changes. However I was able to clone shallow repos, but strangely Bitbucket and Gitlab seemed to be more prone to these errors.&#xA;!--more--&#xA;$ git clone git@....&#xA;Cloning into &#39;somedir&#39;...&#xA;error: RPC failed; curl 56 GnuTLS recv error (-12): A TLS fatal alert has been received.&#xA;fatal: The remote end hung up unexpectedly&#xA;&#xA;At some point, disabling offloading solved the issue: Disabling Offloading on Ubuntu 18.04 with Netplan and/or systemd-networkd&#xA;&#xA;It apparently worked, but soon I found that only worked when using Github. Of course, that didn&#39;t make any sense. When I tried to push changes to Bitbucket or Gitlab I had again the same strange errors saying the remote host hung up unexpectedly.&#xA;&#xA;I tried to debug git using GITSSHCOMMAND, tried using https and even recompiled git to use OpenSSL instead of GnuTLS. Nothing seemed to work... Until I found an answer from this guy who found the solution): I needed to update my Wi-Fi drivers.&#xA;&#xA;Strange error indeed.&#xA;&#xA;TLDR: A bug between Hyper-V and my Wi-Fi card (Intel 5060) was causing this. Updating the drivers solved it:&#xA;&#xA;https://downloadcenter.intel.com/download/28876/Windows-10-Wi-Fi-Drivers-for-Intel-Wireless-Adapters?v=t]]&gt;</description>
      <content:encoded><![CDATA[<p><a href="https://arturo.linar.es/tag:windows" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">windows</span></a> <a href="https://arturo.linar.es/tag:git" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">git</span></a></p>

<p><img src="https://i.snap.as/laC4Y9p.png" alt=""/></p>

<p><strong>I started having some issues when using git inside a Linux VM</strong> while setting up an <a href="https://arturo.linar.es/en/blog/drupal-development-windows" rel="nofollow">experimental Drupal development environment</a>. I wasn&#39;t able to clone repositories because I was getting some errors saying the remote host hanged unexpectedly, or couldn&#39;t push changes. However I was able to clone shallow repos, but strangely Bitbucket and Gitlab seemed to be more prone to these errors.
</p>

<pre><code>$ git clone git@....
Cloning into &#39;somedir&#39;...
error: RPC failed; curl 56 GnuTLS recv error (-12): A TLS fatal alert has been received.
fatal: The remote end hung up unexpectedly
</code></pre>

<p>At some point, disabling offloading solved the issue: <a href="https://michael.mulqueen.me.uk/2018/08/disable-offloading-netplan-ubuntu/" rel="nofollow">Disabling Offloading on Ubuntu 18.04 with Netplan and/or systemd-networkd</a></p>

<p>It apparently worked, but soon I found that only worked when using Github. Of course, that didn&#39;t make any sense. When I tried to push changes to Bitbucket or Gitlab I had again the same strange errors saying the remote host hung up unexpectedly.</p>

<p>I tried to debug git using <code>GIT_SSH_COMMAND</code>, tried using https and even recompiled git to use OpenSSL instead of GnuTLS. Nothing seemed to work... Until I found an answer from <a href="https://stackoverflow.com/a/56946337/547972" rel="nofollow">this guy who found the solution</a>): I needed to update my Wi-Fi drivers.</p>

<p>Strange error indeed.</p>

<p><strong>TLDR</strong>: A bug between Hyper-V and my Wi-Fi card (<em>Intel 5060</em>) was causing this. Updating the drivers solved it:</p>

<p><a href="https://downloadcenter.intel.com/download/28876/Windows-10-Wi-Fi-Drivers-for-Intel-Wireless-Adapters?v=t" rel="nofollow">https://downloadcenter.intel.com/download/28876/Windows-10-Wi-Fi-Drivers-for-Intel-Wireless-Adapters?v=t</a></p>
]]></content:encoded>
      <guid>https://arturo.linar.es/git-errors-when-using-hyper-v</guid>
      <pubDate>Sat, 05 Oct 2019 04:56:47 +0000</pubDate>
    </item>
  </channel>
</rss>