Code Monkey home page Code Monkey logo

Comments (20)

KrashLeviathan avatar KrashLeviathan commented on September 24, 2024 3

Thanks for writing this article -- I especially appreciated the sections about verifying line endings after the change and then updating the files in your working tree. That's when everything finally clicked for me. :-)

from aleksandrhovhannisyan.com.

ekortright avatar ekortright commented on September 24, 2024 2

Very useful. Thank you.

from aleksandrhovhannisyan.com.

DhrumilDave5 avatar DhrumilDave5 commented on September 24, 2024 2

Thank You so much, I like articles like this where there is details like the historical ones.

from aleksandrhovhannisyan.com.

chriswayg avatar chriswayg commented on September 24, 2024 1

Cool about the history. I still used teletypewriters with a dial up phone modem in a computer lab.

image

from aleksandrhovhannisyan.com.

SKSSSX avatar SKSSSX commented on September 24, 2024 1

For an engineer, this rivet is very important, without it, you can't build a building

from aleksandrhovhannisyan.com.

gregorybleiker avatar gregorybleiker commented on September 24, 2024 1

You just saved me a lot of time, thank you!

from aleksandrhovhannisyan.com.

ahmafi avatar ahmafi commented on September 24, 2024 1

Thanks for the great article.
In * text=auto eol=lf doesn't the text=auto get ignored? Because setting eol=lf treats all files as text.
I was getting confused on this and asked this question here as well.

from aleksandrhovhannisyan.com.

AleksandrHovhannisyan avatar AleksandrHovhannisyan commented on September 24, 2024 1

@ahmafi Oh, interesting—I think you may be right! It looks like text=auto tells Git to use its file-type detection algorithm to apply LF to text files, so eol=lf is redundant. Let me play around with this a bit more, and then I'll update the post to clarify it a bit better.

from aleksandrhovhannisyan.com.

djnotes avatar djnotes commented on September 24, 2024

Nice article, easy to understand and apply, and a bit too long :(

from aleksandrhovhannisyan.com.

germanfrelo avatar germanfrelo commented on September 24, 2024

Nice article, very interesting and useful. Thank you!

from aleksandrhovhannisyan.com.

Jeff-Hugh avatar Jeff-Hugh commented on September 24, 2024

Very useful. Thanks a lot!

from aleksandrhovhannisyan.com.

denislutz avatar denislutz commented on September 24, 2024

You made my day, thank you! Finally a solution for this. Красава!

from aleksandrhovhannisyan.com.

netzpace avatar netzpace commented on September 24, 2024

Your writing style is clear an comprehensive. Just what I was looking for. Appreciate your hard work.

from aleksandrhovhannisyan.com.

jelischer avatar jelischer commented on September 24, 2024

unfortunately Git line endings doesn't help with one scenario:

You are mirroring $hugecompanythatmakesprocessors". The developers in that company mixed CRLF and LF at some times in the past and have not cleaned it up. In order to be able to make sensible merges and diffs, you need the file in the repo to each remain in their original form, while being able to have the files checked out in your local form, and then reconverted back to the original form when checked back in. The only answer is to freeze the whole repo and use an editor that knows what it is doing and follows the original style for that file. Git unfortunately can't help you (though it could). Mix in that some of your subcontractors are working in a windows shop..

from aleksandrhovhannisyan.com.

krzychb avatar krzychb commented on September 24, 2024

Fantastic and exceptionally comprehensive article. Thank you!

from aleksandrhovhannisyan.com.

lundgrenmattias avatar lundgrenmattias commented on September 24, 2024

Very useful. Thank you!

from aleksandrhovhannisyan.com.

hyzyla avatar hyzyla commented on September 24, 2024

Thanks for the article, it was interesting to read

from aleksandrhovhannisyan.com.

paddy-r avatar paddy-r commented on September 24, 2024

Extremely useful, @AleksandrHovhannisyan, thanks! Combined with some specific stuff from the docs here, could fix my issue.

from aleksandrhovhannisyan.com.

markmaker avatar markmaker commented on September 24, 2024

Very useful, but all such guides seem to be missing the merge.renormalize configuration variable, which makes renormalizing the standard for all "mergy" operations like merge and cherry-pick.

See here:
https://git-scm.com/docs/gitattributes#_merging_branches_with_differing_checkincheckout_attributes

Unfortunately, so far I have not found a way to make it into a .gitattributes entry, or something, so it will be particular to a branch, and centralized/mandatory for all repo clones.

from aleksandrhovhannisyan.com.

dbnex14 avatar dbnex14 commented on September 24, 2024

Thank you for such a great article about .gitattributes at https://www.aleksandrhovhannisyan.com/blog/crlf-vs-lf-normalizing-line-endings-in-git/
it is best and most informative article I have red on tis topic
Much appreciated

from aleksandrhovhannisyan.com.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.