windows开发注意事项

2021-12-13  本文已影响0人  taobao

1:phpstrom设置编码utf-8;
2:Editor > Code Style > Line separator 设置为\n
3:git设置

# windows推荐core.autocrlf为input
git config --global core.autocrlf input #禁止转换
true: 提交时转换为 LF,检出时转换为 CRLF
false: 提交检出均不转换
input: 提交时转换为LF,检出时不转换

git config --global core.safecrlf true # 拒绝提交包含混合换行符的文件
git config --global core.safecrlf false #允许混合提交
git config --global core.safecrlf warn # 发出警告

# 配置有多个,查看配置生效位置
git config -l --show-origin 

4:centos虚拟机、docker虚拟机,注意配置转发

vim /etc/sysctl.conf
# 添加
net.ipv4.ip_forward=1
上一篇 下一篇

猜你喜欢

热点阅读