全局设置名称和邮箱:
git config --global user.name \"you name\"git config --global user.email \"you email\"
如果针对某个项⽬设置的话,去掉global即可git config user.name \"you name\"git config user.email \"you email\"
查看当前项⽬配置git config --list
查看全局配置git config --global --list
linux下git提⽰设置⾼亮git config --global color.ui true
window上⾯出现问题:warning: LF will be replaced by CRLF
原因:需要提交的⽂件是在windows下⽣成的,windows中的换⾏符为 CRLF, ⽽在linux下的换⾏符为LF,所以在执⾏add . 时出现提⽰
解决办法:
git config --global core.autocrlf false
因篇幅问题不能全部显示,请点此查看更多更全内容
Copyright © 2019- 69lv.com 版权所有 湘ICP备2023021910号-1
违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务