Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7928877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T19:52:51+00:00 2026-06-03T19:52:51+00:00

I am researching the best autocrlf setting for GIT and I am confused about

  • 0

I am researching the best autocrlf setting for GIT and I am confused about what happens with code pasted into the editor if it is set to false. I notice many people recommend setting it to false, mentioning that as long as proper and properly set editors are used then there should be no problems, and I can understand this if I write ALL the code in the file; but I am confused about how this setting would work if I copy a snippit from eg a browser, or maybe some old code or something, or what if i used an entire old file. Surely I could easily end up with mixed CRLF and LF’s as some of the code I get might be CRLF and some LF? Or are editors so smart that they themselves convert any pasted in code on save?

EDIT:I suppose I should also be asking: Is it a real problem if the EOF’s are mixed?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T19:52:53+00:00Added an answer on June 3, 2026 at 7:52 pm

    The idea is, in order to avoid any issue with EOF, to use only editors:

    • able to detect the current EOF style used by the opened file
    • able to save that file with the same EOF style (so, no conversion on save)

    That way:

    • you keep your core.autocrlf to false (no conversion done automagically by git, unless you really need to: see “Why should I use core.autocrlf=true in Git?“)
    • you work with different files having mixed EOF (but you don’t care because your editor will always “do the right thing”)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently researching the best methods to integrate i18n into projects. There's several
Folks, What is the best way to go about researching and presenting for a
I'm researching Medical Data set which includes variable concerning illnesses and treatment type. For
I am currently researching the best practises (at a reasonably high level) for application
I'm researching PHP security best practices and specifically the HTML Purifier library. I like
I'm researching how to best extend a C++ application with scripting capability, and I
I haven't spent a ton of time researching this yet, mostly looking for best
I am busy researching the best solution to us to apply comments to my
Currently I'm researching the best design pattern to implement for a windows form application
I have been researching how best to retrieve subsets of location data from a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.