Update Gitignore

VerifiedSafe

Add and manage files or directories in .gitignore to prevent git tracking. Includes status checking and untracking if needed.

Sby Skills Guide Bot
DevelopmentBeginner
306/2/2026
Claude CodeCursorWindsurfCopilotCodex
#gitignore#git#file-management#version-control

Recommended for

Our review

Adds specific files or directories to .gitignore to prevent them from being tracked by Git.

Strengths

  • Automates .gitignore updates
  • Checks if the file is already tracked
  • Offers to untrack files that are already staged

Limitations

  • Does not handle global or nested .gitignore files
  • Cannot automatically detect sensitive files
  • No rollback of changes
When to use it

When you need to ignore generated files, dependencies, or local configuration files.

When not to use it

If you want to ignore files globally without adding to the project's .gitignore.

Security analysis

Safe
Quality score80/100

The skill uses safe git commands (git ls-files, git rm --cached) and appends to .gitignore, which poses no risk of data destruction or exfiltration. No external network calls or obfuscated payloads are involved.

No concerns found

Examples

Ignore node_modules directory
Add node_modules/ to .gitignore and untrack it if already tracked.
Ignore a specific log file
Add debug.log to .gitignore and stop tracking it.
Ignore all .env files
Add *.env to .gitignore with a comment explaining it's for environment variables.

name: ignore description: 不要なファイル・ディレクトリを .gitignore に追加・管理する

Update Gitignore

This skill adds specific files or patterns to .gitignore to prevent them from being tracked by git.

Instructions

  1. 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>.
  2. Update .gitignore:

    • Append the path or pattern to the .gitignore file in the root directory.
    • Add a comment if necessary to explain why it's ignored.
  3. Untrack (if needed):

    • If the file was already tracked, run git rm --cached <path> to stop tracking it while keeping the local copy.
Related skills