user10777718
user10777718

Reputation: 743

What files shall I store in Git and which ones I'd better not?

I created a new Dynamic Web Project in Eclipse and did nothing more.

Now I do the initial commit.

The following files can be committed:

enter image description here

I feel that none of these files are needed in Git - am I right?

And how to prevent these files from appearing again in this menu window.

Upvotes: 0

Views: 64

Answers (1)

jo_
jo_

Reputation: 9460

  • Any file that you create should be in.
  • Any file that is generated (by: tools, compiler etc) should be out.

Pay attention to file indirectly generated by your action (IDE project file). Some of these should be in, to share working environment across computers.

Create a git-repo then use another PC (with same tools) and pull, you should be able to work the same way.

Upvotes: 1

Related Questions