Gérer les fichiers ignorés avec .gitignore
Ajouter et gérer les fichiers ou répertoires à ignorer dans .gitignore pour éviter leur suivi par git. Inclut la vérification du statut et le retrait du suivi si nécessaire.
Spar Skills Guide Bot
DevOpsDébutant1 vues0 installations04/03/2026Claude CodeCursorWindsurfCopilot
gitgitignoreversion-controlproject-management
name: ignore description: 不要なファイル・ディレクトリを .gitignore に追加・管理する
Update Gitignore
This skill adds specific files or patterns to .gitignore to prevent them from being tracked by git.
Instructions
-
Check Status:
- Check if the file/directory is already in
.gitignore. - Check if the file is currently tracked by git using
git ls-files <path>.
- Check if the file/directory is already in
-
Update .gitignore:
- Append the path or pattern to the
.gitignorefile in the root directory. - Add a comment if necessary to explain why it's ignored.
- Append the path or pattern to the
-
Untrack (if needed):
- If the file was already tracked, run
git rm --cached <path>to stop tracking it while keeping the local copy.
- If the file was already tracked, run
Skills similaires
Architecte Docker Compose
100
Concoit des configurations Docker Compose optimisees.
Claude CodeCopilotadvanced
4301561278Admin
Rapport de Post-Mortem
100
Rédige des rapports post-mortem d'incidents structurés et blameless.
claudeCursorWindsurfintermediate
14143335Admin
Créateur de Runbooks
100
Crée des runbooks opérationnels clairs pour les procédures DevOps courantes.
claudeCursorWindsurfintermediate
10832261Admin