How do you change core.autocrlf when using SmartGit?
Asked Answered
S

3

11

I don't have any experience with version control from the terminal but as far as I can tell SmartGit does not have a terminal nor does it use an external git client that I could configure via terminal so I don't really see how I can execute git configuration commands on it. Specifically, I want to do:

git config --global core.autocrlf true

Does it have an equivalent configuration option available from within the UI or is there some other way to apply this?

Seismic answered 22/4, 2013 at 15:0 Comment(1)
Doesn't msysgit set this option by default?Puente
P
8

SmartGit/Hg uses the command line Git which is configured in the Preferences. Both, command line Git and SmartGit/Hg will honor the global core.autocrlf configuration from your .gitconfig file.

Physiology answered 22/4, 2013 at 15:7 Comment(0)
S
9

If you have problems with terminals, you could also edit the file $HOME/.gitconfig on Linux platforms or C:\Users\%USERNAME%\.gitconfig on Windows, and add the following lines to it:

[core]
    autocrlf = false

Also you can set the default EOL with:

[core]
    eol = lf
Stefansson answered 28/4, 2016 at 9:51 Comment(0)
P
8

SmartGit/Hg uses the command line Git which is configured in the Preferences. Both, command line Git and SmartGit/Hg will honor the global core.autocrlf configuration from your .gitconfig file.

Physiology answered 22/4, 2013 at 15:7 Comment(0)
R
0

When we select an item Checkout Windows-style, commit Unix-style during git installation, this setting is saved in "C:\Program Files\Git\etc\gitconfig" as [core] autocrlf = true

Reinhart answered 10/8, 2022 at 14:55 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.