1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 21:46:22 +01:00
Files
openshift-docs/modules/openshift-developer-cli-ignoring-files-or-patterns.adoc
Yana Hontyk 21575d349b odo docs
2019-10-11 13:41:38 +00:00

20 lines
741 B
Plaintext

// Module included in the following assemblies:
//
// * cli_reference/openshift_developer_cli/configuring-the-odo-cli.adoc
[id="ignoring-files-or-patterns_{context}"]
= Ignoring files or patterns
You can configure a list of files or patterns to ignore by modifying the `.odoignore` file in the root directory of your application. This applies to both `odo push` and `odo watch`.
If the `.odoignore` file does _not_ exist, the `.gitignore` file is used instead for ignoring specific files and folders.
To ignore `.git` files, any files with the `.js` extension, and the folder `tests`, add the following to either the `.odoignore` or the `.gitignore` file:
----
.git
*.js
tests/
----
The `.odoignore` file allows any glob expressions.