문제

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

도움이 되었습니까?

해결책

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/
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top