Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Try:</p> <pre><code>git config core.fileMode false </code></pre> <p>From <a href="https://www.kernel.org/pub/software/scm/git/docs/git-config.html" rel="noreferrer">git-config(1)</a>:</p> <blockquote> <pre><code>core.fileMode If false, the executable bit differences between the index and the working copy are ignored; useful on broken filesystems like FAT. See git-update-index(1). True by default. </code></pre> </blockquote> <p>The <code>-c</code> flag can be used to set this option for one-off commands:</p> <pre><code>git -c core.fileMode=false diff </code></pre> <p>And the <code>--global</code> flag will make it be the default behavior for the logged in user.</p> <pre><code>git config --global core.fileMode false </code></pre> <h2>Warning</h2> <p><code>core.fileMode</code> is not the best practice and should be used carefully. This setting only covers the executable bit of mode and never the read/write bits. In many cases you think you need this setting because you did something like <code>chmod -R 777</code>, making all your files executable. But in most projects <strong>most files don't need and should not be executable for security reasons</strong>.</p> <p>The proper way to solve this kind of situation is to handle folder and file permission separately, with something like:</p> <pre class="lang-sh prettyprint-override"><code>find . -type d -exec chmod a+rwx {} \; # Make folders traversable and read/write find . -type f -exec chmod a+rw {} \; # Make files read/write </code></pre> <p>If you do that, you'll never need to use <code>core.fileMode</code>, except in very rare environment.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload