Patches
Edit, add or delete files in your repository at build time without touching the source repository.
A patch changes a file after wtree Cloud clones your repository and before it builds. Use patches to override config for one environment, inject settings, tweak source code, or add files you don't commit.
Patches never modify your repository. They apply in order on every build until you remove them.
Create a patch
Open Settings › File patches in the application and click Add patch.
Choose the operation:
- Edit: select a file in the tree and change it in the editor.
- Create: go to a directory, click New file in root (or open a subdirectory), enter the file name and content, then click Create.
- Delete: select a file and click Mark for deletion.
Click Save patch.
Manage patches
The list shows each patch's file path and operation (edit, create or delete). Edit or remove patches at any time.
An edit patch for a file that doesn't exist in the repository fails the build. Remove patches you no longer need so they don't change later builds.
