55

Please don't include generated files in source control.

Comments
  • 4
    What about lock files? ;)
  • 2
    oh yes please...
    my boss always wants to include all those generated CSS and JS files just for the simple reason that he often forgets to start the build process when I send him a merge request for review...
  • 8
    tell that to 90% of JavaScript projects on GitHub.
  • 6
    What if the generated code is a machine learning model that takes days to train?
  • 0
    @jaread adding trained model to source control is not too bad, but there should be better ways. Stuff like git really only works well with text.
  • 0
    @timlyrics please enlighten me then, what version control system is more suited for models? Note that models are usually just a bunch of matrices.
  • 0
    Tell that to my retarded colleague who just committed the Pods directory
  • 0
    @ the one guy who keeps pushing his android build file so i have to clean gradle after every pull
  • 0
    Surely it depends on the type of generated file? 🤔
  • 1
    Well not everyone always builds on their server. For example for my app that is hosted on GitHub pages I have to push the compiled files.
  • 0
    @jaread Do you need those in version control? Storing those files appears to like storing a sql file for a database.

    Yes, you need to be able to access from them somewhere. Yet I argue such files are better of in a datastore, whatever that may be. (Blob in a database, or stored on am amazon s3 cluster)
Add Comment