<p>Once upon a time in a world far far away, I cloned a repo and had to change permission of the directory. When commiting the changes, I noticed that it shows all files are changed and I thought I messed it up. After digging around for a while I found out that it's only the file permission change that git is seeing. If you're like me and it annoys you to see git showing all files changed just cause the permission changed, use the force below -</p><pre><code class="language-bash">$ git config core.fileMode false</code></pre><p>Run the above command in a shell and git will know that you don't want it to follow file permission changes.<br><br>**Carefull though, if the file permissions are important in your repo then you might not want to do that.</p>
Get New Tutorials Delivered to Your Inbox
New tutorials will be sent to your Inbox once a week.