Ignore files from target folder

Asked

Viewed 699 times

0

How do I ignore the files in the folder target maven’s?

I want to ignore them so that the git don’t see the files.

  • Git has a file you can create called . gitignore ... It is a text file that each line corresponds to the "path" that you intend it to ignore. As you want the Maven target folder, create the . gitignore file at the root of your project and put a line like this: target/

1 answer

2


In the archive .gitignore include the syntax */target/*.

This causes git to ignore everything inside any folder called target


Worth reading from official documentation of git about the .gitignore. There is described in detail the patterns that can be used to ignore project files and folders.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.