Skip to content

[WIP] Rollback to specific commit while retaining later commits#6

Closed
Copilot wants to merge 1 commit intomainfrom
copilot/rollback-to-specific-commit
Closed

[WIP] Rollback to specific commit while retaining later commits#6
Copilot wants to merge 1 commit intomainfrom
copilot/rollback-to-specific-commit

Conversation

Copy link
Copy Markdown

Copilot AI commented Dec 18, 2025

Selective Git Rollback Utility

This PR implements a utility to help users revert code to a specific commit while preserving selected commits that came after it.

Implementation Plan:

  • Create a Git utility script (scripts/selective_rollback.py) that can:
    • List commits between the target commit and HEAD
    • Allow users to select which commits to preserve
    • Create a new branch with the rollback
    • Cherry-pick the selected commits
  • Add user-friendly CLI interface for the utility
  • Add documentation on how to use the selective rollback feature
  • Test the utility with sample scenarios
  • Update README with usage examples
Original prompt

我现在想回退代码到某一个commit 但是想要保留这个commit后面的其中几次commit


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants