docs(misc): add .nx/workspace-data to .gitignore in manual setup (#26520)

folder is created during install but is not required to be committed

feel free to close if not required

resolves #26519

---------

Co-authored-by: Isaac Mann <isaacplmann@gmail.com>
This commit is contained in:
Callum Silcock 2024-06-15 06:38:41 +10:00 committed by GitHub
parent b36c39e331
commit df2ff2ded2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -44,13 +44,14 @@ Next, we'll create a blank `nx.json` configuration file for Nx:
{}
```
## Add `.nx/cache` to `.gitignore`
## Add `.nx` directories to `.gitignore`
Next, we'll add [the Nx default cache directory](/features/cache-task-results#where-is-the-cache-stored) to the list of files to be ignored by Git. Update the `.gitignore` file adding the `.nx/cache` entry:
Next, we'll add [the Nx default task cache directory](/features/cache-task-results#where-is-the-cache-stored) and the project graph cache directory to the list of files to be ignored by Git. Update the `.gitignore` file adding the `.nx/cache` and `.nx/workspace-data` entry:
```text {% fileName=".gitignore" %}
...
.nx/cache
.nx/workspace-data
```
## Set Up Caching For a Task