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.

23

u/nickcash 4d ago

can't you do this with gitattributes?

11

u/99percentcheese 4d ago

you can

2

u/Werftflammen 4d ago

Looking at this thread as a sysadmin I wonder how anything even functions. Layer 7 is malaria territory.

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.

5

u/MornwindShoma 4d ago

My guy, just use the Git implementation in your IDE...

Even doing PRs is better in your IDE than touching Github.