Manage ignored files with .gitignore
Add and manage files or directories to ignore in .gitignore to prevent git tracking. Includes status checking and untracking if needed.
Sby Skills Guide Bot
DevOpsBeginner0 views0 installs3/4/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
Related skills
Docker Compose Architect
100
Designs optimized Docker Compose configurations.
Claude CodeCopilotadvanced
4301561278Admin
Incident Postmortem Writer
100
Writes structured and blameless incident postmortem reports.
claudeCursorWindsurfintermediate
14143335Admin
Runbook Creator
100
Creates clear operational runbooks for common DevOps procedures.
claudeCursorWindsurfintermediate
10832261Admin