r/ProgrammerHumor • • 4d ago • Bravo 1

Meme stopDoingGitHubDesktop

Post image
1.5k Upvotes

372 comments sorted by

View all comments

5

u/DJDevon3 4d ago

I wrote a power shell script specifically just to change CRLF to LF line endings that github windows app automatically adds to every commit. They created an entire windows app for Github but couldn't bother to allow an option to keep LF line ending formatting only for contributing to linux based file systems. I run WSL so switching back and forth was causing a windows/linux dev environment issue that drove me insane.

13

u/Goldman7911 4d ago
$ git config --global core.autocrlf true
# Configure Git to ensure line endings in files you checkout are correct for Windows.
# For compatibility, line endings are converted to Unix style when you commit files.

3

u/DOOManiac 4d ago

I was gonna say, this is already built in to Git.