Home > Enterprise >  Do these files need to be pushed to Github?
Do these files need to be pushed to Github?

Time:08-15

I made a Rails application. Do i need to push these files to Github?

.browserslistrc
 
.gitattributes

.rspec
 
.ruby-version

CodePudding user response:

The short answers are "if you want", and "there's no reason not to".

All of these files do something to make it easier to replicate your code base and setup on another machine. None of them contain secrets that shouldn't be shared.

  • .browserslistrc

    The config to share target browsers and Node.js versions between different front-end tools.

  • .gitattributes

    a simple text file that gives attributes to pathnames.

    These attributes affect how the contents stored in the repository are copied to the working tree files when commands such as git switch, git checkout and git merge run. They also affect how Git stores the contents you prepare in the working tree in the repository upon git add and git commit.

  • .rspec

    Read command line configuration options from files

  • .ruby-version

    Many Ruby (or Rails) projects will include a simple .ruby-version file, which simply specifies a version number

  • Related