Community
Participate
Working Groups
Steps to reproduce: * On empty workspace, create two java projects "HelloWorld", "HelloWorld2" * Share both projects in a (local) git repository * In HelloWorld2 create a class "Test" in the "src" folder * In Package Explorer, select both projects, right click and click "Team" > "Add" Result: * HelloWorld2 is getting tracked completely (including metadata files like .classpath, .project as well as src folder and Test.java source file) * HelloWorld itself (as well as metadata files like .classpath, .project etc.) is getting tracked * HelloWorld/src (which is empty) is *not* tracked See screenshot for a quick glimpse on the examples result. Is that intentional?
Created attachment 189273 [details] Screenshot of the two projects being tracked except the HelloWorld/src folder
This is intentional. Git does not track directories. It tracks file content.