git-operations-rules

These rules MUST ALWAYS be followed when performing git operations.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "git-operations-rules" with this command: npx skills add totto2727-dotfiles/agents/totto2727-dotfiles-agents-git-operations-rules

Git Operations Rules

Rule (CRITICAL)

These rules MUST ALWAYS be followed when performing git operations.

git -C

Do not use git -C <path> . Always cd to the repository directory first, or use absolute paths within the current working directory.

git unstage

Use git unstage to reset the staging area. Do not pass any options.

git unstage

git undo

Use git undo to undo the last commit. Do not pass any options.

git undo

git stash

Do not use shorthand. Use explicit commands:

  • To save changes: git stash push (not git stash )

  • To restore: git stash apply (not git stash pop )

Before stashing, stage any new (untracked) files with git add so they are tracked; otherwise they will not be included in the stash.

git add <new-files> git stash push -m "<message>" -- <paths>

Related Skills

  • git-commit - Use when creating git commits

  • file-deletion-rules - Use when deleting files

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

git-commit

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

csv-analyzing

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

file-deletion-rules

No summary provided by upstream source.

Repository SourceNeeds Review