How do you specify autocrlf = true for all repositories in SourceTree ?
SourceTree allows you to specify a git config for each repository, so you'd need to manually add autocrlf = true to each config file. Does SourceTree allow you to specify a global git config for all repositories ?
As far as I know, you cannot do this with SourceTree directly - but as usual, git-commandline is your friend:
You've got three levels of .gitconfig - which are stored at different locations
You set options within those three configuration files using a dedicated option:
git config --local/–global/–system ....
Hope that helps
On Windows 7 (maybe same or similar for Windows 10) for Visual Studio and git command line, your global config is in
(dot is in front of the file)
but this is not honored by SourceTree at least in Git Embedded mode, and the config is in
(no dot in front of the file)
[I needed to update both files to modify my global git settings for git command and SourceTree]
Here is more that I found about it because some settings are still overridden by some other 'global' config https://stackoverflow.com/a/55839051/1818723
Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events