Gitignore

Tuesday, 28 January 2014, 22:18

Tags: Git VCS

You typically only want to check in the files that are really neccessary but not the ones which can be generated. By adding files and folders to a .gitignore file they will not be checked in. You can add a .gitignore file to any folder. For a Maven project developed using Eclipse the .gitignore file can be as follows.

Files that were already committed to a repository but have to be ignored will not automatically be removed. This can be done with the following command.