繁体   English   中英

无法使Tower(OSX git GUI)忽略文件权限–“无法锁定配置文件.git / config”错误

[英]Can't get Tower (OSX git GUI) to ignore file permissions – “could not lock config file .git/config” error

问题:

  1. 无法获取Tower(OSX git App)忽略文件权限

设定:

  1. OSX 10.9.5
  2. 使用Tower 2.1.3设置为从以下位置使用git:

/usr/bin/git (System; 1.9.3 (Apple Git-50)


试过:

  • 在Tower / Tower文档中寻找文件模式设置
  • 从终端,尝试过:

$ git config core.fileMode false

  • 哪个输出:

error: could not lock config file .git/config: No such file or directory

  • 在终端中,我看不到:

~/.git/config

/.git/config

/usr/bin/git

/usr/bin/.git


题:

有谁知道如何在OSX上让Tower忽略文件权限?

朝正确方向的任何指针将不胜感激。

干杯

git config将在git repo中工作。

在特定的git repo之外,您可以输入:

git config --global core.fileMode false

然后再次与Tower检查(确保重新启动它)。

OP CMSCSS 在注释中添加:

git config core.fileMode false/.git目录中运行git config core.fileMode false可以/.git工作。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM