Question

I develop a web app using the libGDX framework. My question is, which directories of the libGDX HTML project belong in my repository?

I don't think I need to push the gwt-unitCache-directory in my repo, right? I'm confused about the war-directory, since it also contains the WEB-INF directory and configuration files. Anyway, are there any sub-directories of the war directory which do not belong in my repository?

See screen below, it shows the default project structure of the libGDX HTML project. I've highlighted a few directories I'm not sure about, see comments below. I would appreciate any help!

enter image description here

Was it helpful?

Solution

Simple rule: Anything that can be re-generated shouldn't be part of a Git repo.

That means: if you can clone you repo, launch a build command, and end up with the same war folder than the one you are illustrating in your question, then you don't need to add that folder to your repo.

For instance, the official .gitgignore for the libgdx project itself does include:

war/
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top