问题
使用 git add .
增加文件出现下面的问题
warning: LF will be replaced by CRLF in Supporting code/std_lib_facilities.h.
The file will have its original line endings in your working directory
error: open("learnFirst/.vs/learnFirst/v16/Browse.VC.opendb"): Permission denied
error: unable to index file 'learnFirst/.vs/learnFirst/v16/Browse.VC.opendb'
fatal: adding files failed
解决方法
git config --global core.autocrlf false
原因
/
转义字符问题,默认的git的设置为true,路径/
符号进行转移,设置成false
后不进行转义。