rebase

Perform a non-interactive interactive git rebase. Use when the user asks to rebase, squash, reorder, drop, or rename commits.

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 "rebase" with this command: npx skills add hsablonniere/skills/hsablonniere-skills-rebase

Interactive Rebase

Use the git-rebase-non-interactive.js script located in this skill's directory.

Usage

<skill-path>/git-rebase-non-interactive.js HEAD~N << 'EOF'
pick abc123 Message
drop def456 Message to remove
fixup ghi789 Merge into previous
pick jkl012 Another message
exec git commit --amend -m "New message to rename"
EOF

Available Actions

  • pick: keep the commit as-is
  • drop: remove the commit
  • fixup: merge into the previous commit (keep the previous commit's message)
  • squash: merge into the previous commit (combine both messages)
  • exec git commit --amend -m "...": rename the commit just above

Workflow

  1. Run git log --oneline to see the commits
  2. Build the todo list with the desired actions
  3. Run the command with a heredoc

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.

General

commit

No summary provided by upstream source.

Repository SourceNeeds Review
General

interview

No summary provided by upstream source.

Repository SourceNeeds Review
General

pr

No summary provided by upstream source.

Repository SourceNeeds Review
General

nano-banana-2

Nano Banana 2 - Gemini 3.1 Flash Image Preview

Repository Source
42.3K153inferen-sh