Ignoring Eclipse and Maven files and Folders with Git


The file .gitignore tells Git which files to ignore at commit time. The ignore file itself shall be added and committed to the repository.

Add the following lines to in order to ignore Eclipse project files and folders

.classpath
.project
.settings/

Add the following line to ignore Maven target folder:

target
%d bloggers like this: