Generator für .gitignore-Dateien
Erstelle eine .gitignore aus gängigen Vorlagen: Node, Python, Java, Go, Rust, macOS, Windows und IDEs.
Kurze Antwort: Generator für .gitignore-Dateien: Erstellen Sie eine .gitignore anhand gängiger Vorlagen für Node, Python, Java, Go, Rust, macOS, Windows sowie IDEs. Läuft vollständig in Ihrem Browser, kostenlos und ohne Anmeldung.
Zuletzt aktualisiert
Gut zu wissen
A .gitignore file keeps clutter and secrets out of version control by telling Git which paths to leave untracked — build artifacts, dependency folders, editor droppings and OS metadata. Getting this right early matters, because once a file has been committed, adding it to .gitignore afterward does not remove it from the repository; you have to run git rm --cached to stop tracking it. Starting from a solid template avoids that cleanup headache entirely.
The patterns follow well-known conventions: a trailing slash like node_modules/ matches directories, a leading slash anchors a pattern to the repo root, and a line beginning with ! re-includes something a broader rule excluded. This generator stitches together the canonical ignore sets for each ecosystem you toggle — Node's node_modules and logs, Python's __pycache__ and virtual environments, and so on — plus the OS and editor files (.DS_Store, Thumbs.db, IDE folders) that clutter almost every project regardless of language.
A frequently overlooked point is that .gitignore is about untracked files only, and it is emphatically not a security mechanism — never rely on it to keep an already-committed secret out of history. For sensitive values, keep a real secrets manager and rotate anything that leaked. You can nest a .gitignore in a subdirectory for finer control, and paste your own extra patterns at the bottom. Round out a new repository with the license generator and a starter README.
Häufig gestellte Fragen
- Ist der .gitignore-Generator kostenlos?
- Ja — kostenlos ohne Anmeldung.
- Welche Vorlagen sind enthalten?
- Node, Python, Java, Go, Rust, macOS, Windows und gängige IDEs (VS Code, IntelliJ, vim).
- Werden meine Auswahlen hochgeladen?
- Nein — jede Zeile ist in die Seite eingebaut.
- Kann ich benutzerdefinierte Muster hinzufügen?
- Ja — kopiere die Ausgabe und füge deine eigenen Muster am Ende hinzu.
- Wo sollte die .gitignore-Datei liegen?
- Im Root deines Repos. Du kannst auch verschachtelte .gitignore-Dateien in Unterverzeichnissen für eine genauere Kontrolle haben.