.gitignore för Metals

4 ignoreringsregler för Metals, redo att kopieras till ditt repo.

Scala-språkserver

Den kompletta .gitignore-filen för Metals

# Genererad av LFGitignore - https://lfgitignore.com
# Skapad: 2026-10-13 16:13:57 UTC
# Tekniker: Metals

### Metals ###
.metals/
.bloop/
.ammonite/
metals.sbt

Vad reglerna för Metals faktiskt ignorerar

Alla mönster nedan och varför de hör hemma i din .gitignore.

Referens: https://scalameta.org/metals/docs/editors/vscode#files-and-directories-to-include-in-your

Mönster Vad det ignorerar
.metals/ Referens: https://scalameta.org/metals/docs/editors/vscode#files-and-directories-to-include-in-your
.bloop/ Referens: https://scalameta.org/metals/docs/editors/vscode#files-and-directories-to-include-in-your
.ammonite/ Referens: https://scalameta.org/metals/docs/editors/vscode#files-and-directories-to-include-in-your
metals.sbt Referens: https://scalameta.org/metals/docs/editors/vscode#files-and-directories-to-include-in-your

Så använder du denna .gitignore för Metals

  1. Kopiera reglerna för Metals ovan eller ladda ner filen direkt.
  2. Skapa en fil med namnet .gitignore i roten av ditt Git-repo och klistra in reglerna.
  3. Om några av filerna redan spåras, kör git rm -r --cached . och gör sedan en ny commit — Git tillämpar bara ignoreringsregler på ospårade filer.
  4. Checka in .gitignore så att alla i teamet delar samma regler.

Andra .gitignore-mallar för Verktyg

Visa alla mallar för Verktyg