Yarn Berry Gitignore Settings

Published

I often google something like yarn berry gitignore settings and I usually end up on the same old stack overflow post that then has an answer that links to a random place on the Yarn website, where I usually need to jump through another link or two until I find the right documentation here.

So I figured I’d speed up my own time to find this information and publish it for others to quickly find also!

Zero Installs:

1.yarn/*
2!.yarn/cache
3!.yarn/patches
4!.yarn/plugins
5!.yarn/releases
6!.yarn/sdks
7!.yarn/versions
1.yarn/*
2!.yarn/cache
3!.yarn/patches
4!.yarn/plugins
5!.yarn/releases
6!.yarn/sdks
7!.yarn/versions

Without Zero Installs:

1.pnp.*
2.yarn/*
3!.yarn/patches
4!.yarn/plugins
5!.yarn/releases
6!.yarn/sdks
7!.yarn/versions
1.pnp.*
2.yarn/*
3!.yarn/patches
4!.yarn/plugins
5!.yarn/releases
6!.yarn/sdks
7!.yarn/versions