Hey! These docs are for version 2.0, which is no longer officially supported. Click here for the latest version, 2.7!

Updating .gitignore

Ignoring Pants's byproduct files.

If you use Git, we recommend adding these lines to your top-level .gitignore file:

# Pants workspace files
/.pants.d/
/dist/
/.pids
/.pants.workdir.file_lock*

πŸ“˜

FYI: your .gitignore is used to auto-populate the option pants_ignore

The pants_ignore option tells Pants which files to avoid looking at. Occasionally, you will want to ignore something with Git, but still want Pants to work on the file. See Troubleshooting / common issues for how to do this.


Did this page help you?