lab 1 配置
目的
- 配置git,准备工作
设置名字和信箱 01
如果你之前从没有用过git,那你先需要做一些配置。运行下面的命令,把你 的名字和信箱告诉git。如果你的git已经配置好了,可以直接跳到这节的末尾。
执行:
git config --global user.name "你的名字" git config --global user.email "your_email@whatever.com"
设置换行符参数 02
对于Unix/Mac用户:
执行:
git config --global core.autocrlf input git config --global core.safecrlf true
对于Windows用户:
执行:
git config --global core.autocrlf true git config --global core.safecrlf true