Skip to content

Commit

Permalink
docs(misc): add .nx/workspace-data to .gitignore in manual setup (#…
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
csi-lk and isaacplmann authored Jun 14, 2024
1 parent b36c39e commit df2ff2d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/shared/migration/manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit df2ff2d

Please sign in to comment.