Code Monkey home page Code Monkey logo

Comments (3)

peterdettman avatar peterdettman commented on August 16, 2024

We are following roughly the advice here: https://help.github.com/articles/dealing-with-line-endings . There were recently a few java files in the repository with CRLF endings; they have been fixed. We expect the repository itself to contain only LF endings. If you are working on Windows, I advise you to set core.autocrlf = true, and perhaps core.eol = crlf (even though it should be the default) since there appear to still be some git clients that fail to choose the native EOL correctly when text=auto is set in .gitattributes .

from bc-java.

oh2mqk avatar oh2mqk commented on August 16, 2024

My desktops are Fedora 18 Linux, but still somehow the system is very much confused of what kind of line endings it should do. Actually I personally hate the idea that source repository "knows" what format files should be.
I have never seen it working properly.

from bc-java.

peterdettman avatar peterdettman commented on August 16, 2024

Take a look at https://help.github.com/articles/dealing-with-line-endings#re-normalizing-a-repository : really you should only need to remove the affected files and reset. Let me know if your tree still has problems once you've reset it.

As to the substance of this issue, we will be sticking with the .gitattributes for the moment. It's working fine for us internally across Linux and Windows (once we sorted out some teething problems). We are fairly new to git, but from everything I've read about it, this has become the standard way to handle it. That file doesn't actually compel clients to do anything, it merely advises them of the conventions for this repository.

from bc-java.

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.