You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support Reverting a Commit Without Automatically Committing #943
Git Graph's Revert Commit action immediately creates a revert commit. Please add an option that applies the inverse changes without creating the commit, equivalent to:
git revert --no-commit <commit>
This would allow users to review, adjust, build, and test the reverted changes before committing them.
Motivation
The current behavior works for a simple direct-revert workflow, but it does not support workflows where all changes must be reviewed and submitted through a pull request.
For example, our release branches are protected and require changes to follow this process:
Create a working branch from the release branch.
Apply the revert on the working branch.
Review the resulting changes.
Build and test the changes.
Commit the reviewed revert.
Submit a pull request targeting the release branch.
Git supports this workflow through git revert --no-commit, but Git Graph does not currently expose that option. Using Revert Commit immediately creates the commit, removing the opportunity to inspect and validate the inverse changes first.
Proposed Behavior
Provide both revert workflows in the commit context menu or in a confirmation dialog:
Revert Commit
Revert Commit Without Committing
The second option should perform the equivalent of:
git revert --no-commit <commit>
The resulting changes should remain available in Source Control for normal review, modification, staging, testing, and manual commit creation.
Expected Benefit
This would expose an existing Git capability and support protected-branch and pull-request workflows without requiring users to leave Git Graph and run the command manually in a terminal.
Activity