this post was submitted on 25 Nov 2023
48 points (91.4% liked)

Git

2861 readers
1 users here now

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

Resources

Rules

  1. Follow programming.dev rules
  2. Be excellent to each other, no hostility towards users for any reason
  3. No spam of tools/companies/advertisements. It’s OK to post your own stuff part of the time, but the primary use of the community should not be self-promotion.

Git Logo by Jason Long is licensed under the Creative Commons Attribution 3.0 Unported License.

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 5 points 11 months ago (1 children)

Think about it this way: by making their lives easier, you make life easier for yourself, too. It doesn't take a lot of effort to put a proper .gitattributes file in your repo, but in return, you'll nip any potential future issues from Windows users who are trying to contribute accidentally or unknowingly checking in files with the wrong line endings.

Inb4 "I don't care about contributions from Windows users anyways": a lot of apps are multiplatform these days (usually Electron). It's unreasonable to expect people to do all their coding in Linux and only use Windows for testing, especially when all the tooling already exists on Windows. VS Code will handle a repo with LF line endings just fine as long as you told git not to convert the line endings when checking out.

[–] [email protected] 3 points 11 months ago

Yeah it's a fair point. Thank you.