ERR1 - Git add时出现warning

ERR1 - Git add时出现warning

warning: LF will be replaced by CRLF in FreeRTOS/Demo/CORTEX_LPC1768_GCC_Rowley/flash_placement.xml.

The file will have its original line endings in your working directory.

Answer

取消Git的自动替换、换行方式
git config --global core.autocrlf false

2 - 怎么放弃本地修改

回滚文件:git checkout 文件 / git checkout .
删除新添加的文件:git clean -dxf
git reset .

你可能感兴趣的:(git)