Git global core.fileMode false overridden locally on clone

前端 未结 2 534
时光说笑
时光说笑 2021-01-11 15:34

Reading this, I was able to configure both globally and locally my fileMode config to false.

However, when I git clone, git keeps initializ

相关标签:
2条回答
  • 2021-01-11 15:49
    git clone --config core.filemode=false YOUR_REPOSITORY
    

    for further information refer to the usage information of git clone, or just enter:

    git clone
    

    without any arguments

    0 讨论(0)
  • 2021-01-11 16:00

    Clone, like init, always sets a local core.filemode when it creates a new repository. See my answer to this question for details. The only way to clobber the local setting after a clone is to do it manually (e.g., by having a wrapper command that does the clone, then goes into the clone and removes the setting).

    0 讨论(0)
提交回复
热议问题