File Synchronization

When you run okteto up, a file synchronization service will be automatically started to keep your local files synchronized with your development environment.

Ignoring Files

If some files should not be synchronized between your local machine and your development environment, a file called .stignore can be created containing file patterns to ignore. The .stignore file must be placed in the root of the folder.

The okteto init command will create a default .stignore tailored to the typical use cases of your programming language.

The .stignore file contains a list of file or path patterns. The first pattern that matches will decide the fate of a given file. The patterns follow the same syntax that .gitignore and .dockerignore. More information on this is available here.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
# default .stignore for a go-based project
okteto.yml
.git
*.exe
*.exe~
*.dll
*.so
*.dylib

# Test binary, built with go test -c
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out