Top "Line-endings" questions

Line-ending signifies end of line.

'^M' character at end of lines

When I run a particular SQL script in Unix environments, I'm am seeing a '^M' character at the end …

sql unix newline line-endings os-dependent
env: bash\r: No such file or directory

I'm trying to install YouCompleteMe from here. When I execute: ./install.sh --clang-completer I get this error: env: bash\r: …

windows git bash line-endings core.autocrlf
How should I Fix "svn: Inconsistent line ending style"?

When I run "svn propedit svn:ignore ." at the root of my svn repository, I get this error: svn: Inconsistent …

svn line-endings
Configure Visual Studio to use UNIX line endings

We would like to use Visual Studio 2005 to work on a local copy of an SVN repository. This local copy …

visual-studio visual-studio-2005 line-endings end-of-line
Is it possible for git-merge to ignore line-ending differences?

Is it possible for git merge to ignore line-ending differences? Maybe I'm asking the wrong question ... but: I tried uisng …

git merge git-svn line-endings eol
Convert line-endings for whole directory tree (Git)

Following situation: I'm working on a Mac running OS X and recently joined a project whose members so far all …

git line-endings
What's a quick one-liner to remove empty lines from a python string?

I have some code in a python string that contains extraneous empty lines. I would like to remove all empty …

python string line-endings
Trying to fix line-endings with git filter-branch, but having no luck

I have been bitten by the Windows/Linux line-ending issue with git. It seems, via GitHub, MSysGit, and other sources, …

git newline msysgit line-endings
gVim showing carriage return (^M) even when file mode is explicitly DOS

I'm using gVim on Windows. My code shows ^M characters at the end of lines. I used :set ff=dos …

vim carriage-return line-endings
Python get proper line ending

Is there an easy way to get the type of line ending that the current operating system uses?

python line-endings