<?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 KK's Blog (fromkk)</title><link>https://fromkk.com/tags/git/</link><description>Recent content in Git on KK's Blog (fromkk)</description><generator>Hugo</generator><language>en</language><managingEditor>bebound@gmail.com (KK)</managingEditor><webMaster>bebound@gmail.com (KK)</webMaster><lastBuildDate>Sun, 10 Aug 2025 18:44:06 +0800</lastBuildDate><atom:link href="https://fromkk.com/tags/git/index.xml" rel="self" type="application/rss+xml"/><item><title>Improve Git speed in WSL</title><link>https://fromkk.com/posts/speed-up-git-speed-in-wsl/</link><pubDate>Tue, 26 Dec 2023 11:16:00 +0800</pubDate><author>bebound@gmail.com (KK)</author><guid>https://fromkk.com/posts/speed-up-git-speed-in-wsl/</guid><description>&lt;p&gt;The disk performance in WSL2 is poor, it takes a long time to run &lt;code&gt;git status&lt;/code&gt; in a host&amp;rsquo;s repo. Moreover, if you set a fancy shell prompt, it will take a long time to show the prompt. This article will introduce how to speed up Git in WSL2.&lt;/p&gt;
&lt;h2 id="how-to-speed-up-git-command"&gt;How to speed up Git Command&lt;/h2&gt;
&lt;p&gt;The performance of file system in WSL2 is poor, it takes a long time to run &lt;code&gt;git status&lt;/code&gt; in a host&amp;rsquo;s repo. The solution is to use &lt;code&gt;git.exe&lt;/code&gt; in Windows folder. You can add this into your &lt;code&gt;bashrc&lt;/code&gt;:&lt;/p&gt;</description></item><item><title>Line Ending in Git</title><link>https://fromkk.com/posts/line-ending-in-git/</link><pubDate>Sat, 21 Oct 2023 15:40:00 +0800</pubDate><author>bebound@gmail.com (KK)</author><guid>https://fromkk.com/posts/line-ending-in-git/</guid><description>&lt;p&gt;When working on a project with multiple developers, the line ending can be troublesome. This article will explain how to configure line ending in Git.&lt;/p&gt;
&lt;h2 id="basic-configuration"&gt;Basic configuration&lt;/h2&gt;
&lt;p&gt;The line ending on Windows is &lt;code&gt;CRLF&lt;/code&gt;, on Linux is &lt;code&gt;LF&lt;/code&gt;. To prevent the line ending issue, we can set &lt;code&gt;core.autocrlf&lt;/code&gt; to &lt;code&gt;true&lt;/code&gt; on Windows to let git convert &lt;code&gt;CRLF&lt;/code&gt; to &lt;code&gt;LF&lt;/code&gt; when commit, and convert &lt;code&gt;LF&lt;/code&gt; to &lt;code&gt;CRLF&lt;/code&gt; when checkout. It is automatically configured if you install git on Windows.&lt;/p&gt;</description></item></channel></rss>