在xshell中提交从widows复制进去的代码后,gerrit上每行代码的后面都带有\r,
解决办法:在xshell使用dos2unix命令转换
如转换单个文件:dos2unix file
如转换文件夹:find public/components/ -name "*" | xargs dos2unix (public/components是批量替换的文件夹 "*"代表所有文件)
在xshell中提交从widows复制进去的代码后,gerrit上每行代码的后面都带有\r,
解决办法:在xshell使用dos2unix命令转换
如转换单个文件:dos2unix file
如转换文件夹:find public/components/ -name "*" | xargs dos2unix (public/components是批量替换的文件夹 "*"代表所有文件)