{ "uuid": [ { "value": "b2c3f5ed-2db6-46da-a532-b1e9beb9f1d0" } ], "langcode": [ { "value": "en" } ], "type": [ { "target_id": "daily_email", "target_type": "node_type", "target_uuid": "8bde1f2f-eef9-4f2d-ae9c-96921f8193d7" } ], "revision_timestamp": [ { "value": "2025-06-10T20:13:18+00:00" } ], "revision_uid": [ { "target_type": "user", "target_uuid": "b8966985-d4b2-42a7-a319-2e94ccfbb849" } ], "revision_log": [], "status": [ { "value": true } ], "uid": [ { "target_type": "user", "target_uuid": "b8966985-d4b2-42a7-a319-2e94ccfbb849" } ], "title": [ { "value": "Easily amend commits with git-instafix " } ], "created": [ { "value": "2025-06-10T19:59:46+00:00" } ], "changed": [ { "value": "2025-06-10T20:13:18+00:00" } ], "promote": [ { "value": false } ], "sticky": [ { "value": false } ], "default_langcode": [ { "value": true } ], "revision_translation_affected": [ { "value": true } ], "path": [ { "alias": "", "pid": null, "langcode": "en" } ], "body": [ { "value": "How often do you make commits to a Git branch to later realise that you need to amend one of your unpushed commits?\r\n\r\nA simple `git commit --amend` will only work on the most recent commit, so that won't work if you've added more commits after the one you want to amend.\r\n\r\nYou can make a temporary commit, rebase your branch and squash the temporary commit into the original one.\r\n\r\nOr you can use [git-instafix][0] - a tool for easily fixing and amending old commits.\r\n\r\nInstead of making a temporary commit, running `git-instafix` will show your unpushed commits - allowing you to select one and it will amend it for you in a single step, making it easier to keep your Git commit history cleaner and easier to read and review.\r\n\r\n[0]: https:\/\/github.com\/quodlibetor\/git-instafix", "format": "markdown", "processed": "
How often do you make commits to a Git branch to later realise that you need to amend one of your unpushed commits?<\/p>\n
A simple You can make a temporary commit, rebase your branch and squash the temporary commit into the original one.<\/p>\ngit commit --amend<\/code> will only work on the most recent commit, so that won't work if you've added more commits after the one you want to amend.<\/p>\n