Git: Dealing with .class files and other compiled objects

Lets say I have a couple branches with different code: BranchA and BranchB. Assume I'm currently on BranchA and run a build. Suppose that my build dumps .class files and other compiled objects into directories within the work tree. When I run a diff, I see that directories have changed because they have new compiled objects within.

If I switch to BranchB and deploy my code, then I'm actually deploying objects compiled from BranchA's code base, since git maintained my floating changes (new compiled objects) across the branch switch. This is obviously a mistake.

There are a few ways to avoid this, one being cleaning up non-versioned files whenever we switch branches, but is there a more fool-proof way of taking care of this issue. I'd really rather not put compiled object into version control.


What I do

  1. use .gitignore to exclude compiled files from the repo
  2. make a clean and compile part of your deployment process.

Need Your Help

Exporting Data into CSV file and retrieving file name

vba excel-vba export filenames export-to-csv

So I have already exported data using a CSV file, but as of now it is just raw data. I am trying to dsiplay the file name that it is from and the Sheet name. Here is my code so far from exporting the

Why doesn't Entity Framework allow us to perform inserts, updates and deletes against the view?


Why doesn't Entity Framework allow us to perform inserts, updates or deletes against the view?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.