Linked Questions

2 votes
1 answer
819 views

Platform: Windows 10 Editor: VSCode Hi, I am working on Windows using WSL and develop on VSCode. I notice that whenever I clone a project that contains Bash scripts into VSCode, these scripts are ...
Kefeng91's user avatar
  • 812
1302 votes
27 answers
1.2m views

On a Windows machine, I added some files using git add. I got warnings saying: LF will be replaced by CRLF What are the ramifications of this conversion?
mrblah's user avatar
  • 104k
949 votes
8 answers
885k views

Is there a file or menu that will let me change the settings on how to deal with line endings? I read there are 3 options: Checkout Windows-style, commit Unix-style Git will convert LF to CRLF when ...
qwertymk's user avatar
  • 35.6k
702 votes
9 answers
274k views

I tried committing files with CRLF-ending lines, but it failed. I spent a whole work day on my Windows computer trying different strategies and was almost drawn to stop trying to use Git and instead ...
Daniel Jomphe's user avatar
109 votes
7 answers
166k views

In Visual Studio Code, I have changed the default EOL (end-of-line token) from CRLF to LF, but this only applies to new files. I would like to know how to change the EOL for all files at once as I ...
Thong Yi Xuen's user avatar
84 votes
10 answers
141k views

As we all know, the linebreaks (new line) used in Windows are usually carriage returns (CR) followed by a line feed (LF) i.e. (CRLF) whereas, Linux and Unix use a simple line feed (LF) Now, in my ...
Ravindra Thorat's user avatar
187 votes
3 answers
74k views

Mostly .gitattributes file has * text=auto. What is the purpose of text=auto in that file?
Fizer Khan's user avatar
  • 93.7k
57 votes
4 answers
51k views

In trying to standardise the platform for the developers, one of my needs would be to commit the .git/config so that everybody have the same CRLF config without forgetting to set it by hand. How do I ...
nraynaud's user avatar
  • 5,181
57 votes
3 answers
39k views

Context A number of my application user configuration files are kept in a git repository for easy sharing across multiple machines and multiple platforms. Amongst these configuration files is ....
60 votes
3 answers
68k views

I have an existing repository where line endings are all messed up. I'd like to rewrite the entire repository and fix line endings once and for all. There are text files and binary files, let's ...
user907059's user avatar
54 votes
3 answers
23k views

We have this in our .gitattributes file: * text=auto eol=lf I'd like to precisely understand what this does. The first part is text=auto. From the documentation: This ensures that all files that ...
Borek Bernard's user avatar
16 votes
2 answers
34k views

I am getting a CR ESLint error - even though I have the git pull code with Windows line endings. This occurs in Visual Studio Code with ESLint plugin (1.7.0). This did not occur until I recently ...
Vah Run's user avatar
  • 13.9k
5 votes
3 answers
40k views

I am new to docker and attempting to port an app over to it. Essentially, on startup, the app needs to perform some environment dependent work which I have encapsulated in a script. My app looks like ...
pQuestions123's user avatar
16 votes
1 answer
9k views

I have git on windows configured with git config --global core.autocrlf false so that git does not auto convert files on checkout from LF line endings to CRLF. When I create a new file on windows and ...
ams's user avatar
  • 63.3k
5 votes
3 answers
5k views

I have recently downloaded vb6.o project file from bitbucket but unable to run project it generates following error in log files '0' could not be loaded Line 0: The file E:\cas\Forms\errorform.frm ...
Jeevan Gharti's user avatar

15 30 50 per page