-
Git-warning: CRLF will be replaced by LF in XXX .
- 解决方案:
git config core.autocrlf false //将设置中自动转换功能关闭
- 问题解释和分析
warning: CRLF will be replaced by LF in XXX . The file will have its original line endings in your working directory.
CRLF : windows 环境下的换行符
LF : linux 环境下的换行符
这个错误的意思,就是文件中存在两种环境的换行符,git 会自动替换 CRLF 为 LF ,所以提示警告。
https://git-scm.com/book/zh/v1/%E8%87%AA%E5%AE%9A%E4%B9%89-Git-%E9%85%8D%E7%BD%AE-Git#%E6%A0%BC%E5%BC%8F%E5%8C%96%E4%B8%8E%E7%A9%BA%E7%99%BD
- 解决方案:
-
remote: error: unable to unlink old 'vendor/jakub-onderka/php-console-color/phpunit.xml': Permission denied
- 解决方案:
修改 服务器上 文件权限
文件原权限 root , 改为git
chown git:git . -R
- 解决方案:
-
git-gc - Cleanup unnecessary files and optimize the local repository
[Git] 踩坑
最新推荐文章于 2021-01-11 23:33:45 发布