for*_*eka 10 git core.autocrlf smartgit
我对终端的版本控制没有任何经验,但据我所知,SmartGit没有终端也没有使用我可以通过终端配置的外部git客户端,所以我真的不知道我怎么能在它上面执行git配置命令.具体来说,我想做:
git config --global core.autocrlf true
Run Code Online (Sandbox Code Playgroud)
它是否具有UI中可用的等效配置选项,还是有其他方法可以应用此选项?
如果终端有问题,您还可以在 Linux 平台上编辑文件 $HOME/.gitconfig 或在 Windows 上编辑 C:\Users\%USERNAME%\.gitconfig 文件,并将以下行添加到其中:
[core]
autocrlf = false
Run Code Online (Sandbox Code Playgroud)
您也可以使用以下命令设置默认 EOL:
[core]
eol = lf
Run Code Online (Sandbox Code Playgroud)
SmartGit / Hg使用在“首选项”中配置的命令行Git。命令行Git和SmartGit / Hg都将接受文件中的全局core.autocrlf配置.gitconfig。