Add .odoignore documentation
* Add .gitignore documentation
Adds .gitignore documentation.
Closes
* Update documentation for showing gitignore
* Update based on comments
@@ -237,6 +237,28 @@ After any modification to your shell configuration file, you will need to `sourc
**NOTE**: The completion system will stop working if you either rename the `odo` executable or move it. You will therefore need
to re-enable it accordingly.
+## Using the `.odoignore` and `.gitignore` files
+
+The `.odoignore` file in the root directory of your application will ignore a list of files/patterns. This behaviour will apply to both `odo push` and `odo watch`.
+
+If `.odoignore` does *not* exist, `.gitignore` is used instead for ignoring specific files and folders.
+
+For example:
+
+```ini
+.git
+*.js
+/tests
+```
+
+Will ignore `.git` files, any files with the `.js` extension and the folder `tests`.
+
+`.odoignore` allows any [glob expressions](https://en.wikipedia.org/wiki/Glob_(programming)) for example:
+
+```ini
+/openshift/**/*.json
+```
+
## OpenShift notes
These are some extra installation / getting started instructions for your local OpenShift cluster.
