0

I have a particular repository that I would like to set the configuration option core.filemode=false on (using git config core.filemode false), but have it retained for every clone going forward. Is there a way to push this setting to the origin so I don't have to remember it every time I clone?

David I.
  • 4,747
  • 3
  • 26
  • 34

2 Answers2

0

The way I deal with this is by adding this to ~/.bashrc:

PROMPT_COMMAND='
if [ -d .git ]
then
  if [ ! -g .git/config ]
  then
    git config core.filemode 0
    chmod +s .git/config
  fi
fi
'
Community
  • 1
  • 1
Zombo
  • 1
  • 62
  • 391
  • 407
0

There appears to be no way to push this setting to a remote server and have it preserved. Every clone must remember to do this.

David I.
  • 4,747
  • 3
  • 26
  • 34