On SourceTree 1.3.2 on mac OS X how does one enforce line endings on commit?
I want to enforce line endings on commit which would be the same as running this command from command line version of git:
git config --global core.autocrlf input
Thanks. I had run that command against my command line git instance and pointed SourceTree to use that git instance instead of its packaged one, which works. Alternatively I could probably have run that command against the packaged git instance that comes with sourcetree (again using the command line) but I don't see a way to do this from SourceTree itself.
There is no difference. This command changes the ~/.gitconfig file, which is global and nothing to do with where git is run from. Changes in this file affect SourceTree too. This may change if we're forced to sandbox SourceTree in future (the user home directory is then not shared with the app), but in its current form the global gitconfig applies to all git installs, regardless of their location.
As a Belgian, beer-lover and home brewer, beer is one of my great passions. I love the fact that with just a few ingredients (usually just water, hop and malt) you can create so many different tastes...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot