SourceTree App says uncommitted changes even for newly-cloned repository – what could be wrong?

I’m one of the SourceTree developers (I develop the Mac version of the product, actually), so hopefully I can be of some help. Windows machines convert CRLF to LF when committing and LF to CRLF when checking out. autocrlf makes sure everything is LF within the repository. The option text = auto is the one … Read more

Remove end of line characters from Java string

Regex with replaceAll. public class Main { public static void main(final String[] argv) { String str; str = “hello\r\njava\r\nbook”; str = str.replaceAll(“(\\r|\\n)”, “”); System.out.println(str); } } If you only want to remove \r\n when they are pairs (the above code removes either \r or \n) do this instead: str = str.replaceAll(“\\r\\n”, “”);

Configure Visual Studio to use UNIX line endings

Warning: This solution no longer works for Visual Studio 2017 and later. Instead, both of the answers by jcox and Munther Jaber are needed. I have combined them into one answer. As OP states “File > Advanced Save Options”, select Unix Line Endings. This will only affect new files that are created. Fixing any that … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)