In git-config, set core.autocrlf
to true
to make git automatically convert line endings correctly for your platform, e.g. run this command for a global setting:
git config --global core.autocrlf true
More Related Contents:
- Trying to fix line-endings with git filter-branch, but having no luck
- Make ‘git diff’ ignore ^M
- How do I make git use the editor of my choice for commits?
- What’s the strategy for handling CRLF (carriage return, line feed) with Git?
- How line ending conversions work with git core.autocrlf between different operating systems
- git-diff to ignore ^M
- Is it possible for git-merge to ignore line-ending differences?
- git diff – show me line ending changes?
- Git: how to renormalize line endings in all files in all revisions?
- Definitive recommendation for git autocrlf settings
- How do I make git use the editor of my choice for editing commit messages?
- How to normalize working tree line endings in Git?
- Line endings messed up in Git – how to track changes from another branch after a huge line ending fix?
- Git slows down Emacs to Death – How to Fix this?
- What are the differences between double-dot “..” and triple-dot “…” in Git diff commit ranges? [duplicate]
- Git sparse checkout with exclusion
- Show just the current branch in Git
- Start a Git commit message with a hashmark (#)
- Keep file in a Git repo, but don’t track changes
- What is the difference between “git init” and “git init –bare”?
- Skip Git commit hooks
- How to add chmod permissions to file in Git?
- git diff between cloned and original remote repository
- How do I replace a git submodule with another repo?
- Setting up a git remote origin
- GitHub – List commits by author
- What is the difference between git am and git apply?
- How to wrap git commit comments?
- git branch permissions
- How can I reduce the ever-increasing time to push a subtree?