Skip to content
Back to skills

427 Git Commands B6a53e87

ASecurity

Useful git commands when analysing, staging, and amending commits.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
toolsgobashgit

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 427-git-commands_b6a53e87 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 427 Git Commands B6a53e87?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 427 Git Commands B6a53e87
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-427-git-commands-b6a53e87/badge)](https://www.skillsdirectory.com/skills/tools-only-427-git-commands-b6a53e87)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
# Git Commands for Commit Workflows

Useful git commands when analysing, staging, and amending commits.

## Analysing changes

Review what is being committed:

```bash
# Show files changed
git status

# Show detailed changes
git diff --staged

# Show statistics
git diff --staged --stat

# Show changes for specific file
git diff --staged path/to/file
```

## Interactive staging

Use `git add -p` for selective staging:

```bash
# Stage changes interactively
git add -p

# Review what's staged
git diff --staged

# Commit with message
git commit -m "type(scope): description"
```

## Amending commits

Fix the last commit message:

```bash
# Amend commit message only
git commit --amend

# Amend and add more changes
git add forgotten-file.js
git commit --amend --no-edit
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…