[Git] 踩坑

  • 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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值