.target
is the directory configured for Eclipse output by SBT (when you use the SBT eclipse
command).
According to this issue, they choose this name (not the same as the SBT target
directory) to avoid Eclipse and SBT compiling to the same directory.
You can include it in your .gitignore.