Git Product home page Git Product logo

gitattributes_generator's Introduction

Welcome to '.gitattributes Generator'

It generates gitattributes file exclusively for your project. Go ahead and generate yours at http://ihopepeace.github.io/gitattributes_generator/. You don't have to read further for generating.


Why this?

Every time you press return on your keyboard you're actually inserting an invisible character called a line ending. Historically, different operating systems have handled line endings differently.

When you view changes in a file, Git handles line endings in its own way. Since you're collaborating on projects with Git and GitHub, Git might produce unexpected results if, for example, you're working on a Windows machine, and your collaborator has made a change in OS X.

Using .gitattributes file you can overcome this problem most effectively. You can read more here https://help.github.com/articles/dealing-with-line-endings/

Please Contribute

The project is not even in its beta. You are highly encouraged to contribute to it.

The heart of this generator is gitattributes_generator.js. It contains a function which accepts an object. The code is well documented. Please let me know if you aren't able to understand any portion. I will end this with an example usage...

var obj = { text: ['c', 'js', 'json',], binary:['jpeg'], lf:[ ], crlf: ['vproj', 'sln'] }; gitattributesGenerator(obj);

gitattributes_generator's People

Contributors

ihopepeace avatar

Watchers

James Cloos avatar  avatar

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.