<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: duflow89</title>
    <description>The latest articles on DEV Community by duflow89 (@duflow89).</description>
    <link>https://dev.to/duflow89</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F700638%2F9fa1bb9f-ac3a-4bd5-9c23-6f28568aa6ec.jpeg</url>
      <title>DEV Community: duflow89</title>
      <link>https://dev.to/duflow89</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/duflow89"/>
    <language>en</language>
    <item>
      <title>Git pre-commit hook not working (macOS)</title>
      <dc:creator>duflow89</dc:creator>
      <pubDate>Thu, 22 Sep 2022 03:19:33 +0000</pubDate>
      <link>https://dev.to/duflow89/git-pre-commit-hook-not-working-macos-4dbc</link>
      <guid>https://dev.to/duflow89/git-pre-commit-hook-not-working-macos-4dbc</guid>
      <description>&lt;h2&gt;
  
  
  Problem
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;the '.husky/pre-commit' hook was ignored because it's not set as executable.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Why
&lt;/h2&gt;

&lt;p&gt;it's probably a problem that wasn't created taking into account the file permissions of Linux at the time of init on Windows.&lt;br&gt;
(&lt;a href="https://github.com/typicode/husky/issues/1177#issuecomment-1212831091"&gt;Refernce&lt;/a&gt;)&lt;/p&gt;

&lt;h2&gt;
  
  
  Solve
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;chmod &lt;/span&gt;ug+x .husky/&lt;span class="k"&gt;*&lt;/span&gt;
&lt;span class="nb"&gt;chmod &lt;/span&gt;ug+x .git/hooks/&lt;span class="k"&gt;*&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
  </channel>
</rss>
