Skip to main content
100%

deleting a specific git commit

✓ Published0🌍 Public
BBBischof
Last edited May 12, 2016
Created on May 12, 2016

This example shows a shell-script workflow for removing a specific commit from a Git history, using `git log` to locate the offending commit’s ID and then `git rebase --onto` with the commit’s parent and the commit ID to drop it from the current branch. The code relies on Git’s command-line interface, specifically the `rebase` and `log` commands, and is written as a Bash script with inline comments. It does not include any data visualization or graphical output; instead, the “visualization” is the textual commit graph visible through `git log`. The script is minimal, demonstrating the exact sequence of commands needed to delete a chosen commit without merging or reverting.

AI-generated description

Similar vizzes