{"id":17084415,"url":"https://github.com/niklasf/git-rebase-patch","last_synced_at":"2025-04-12T21:26:24.077Z","repository":{"id":2512235,"uuid":"3487740","full_name":"niklasf/git-rebase-patch","owner":"niklasf","description":"Rebase patches that no longer apply to HEAD","archived":false,"fork":false,"pushed_at":"2014-07-10T10:28:11.000Z","size":175,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-26T15:42:43.465Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/niklasf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-02-19T19:44:14.000Z","updated_at":"2023-08-25T17:21:00.000Z","dependencies_parsed_at":"2022-08-03T01:30:27.332Z","dependency_job_id":null,"html_url":"https://github.com/niklasf/git-rebase-patch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niklasf%2Fgit-rebase-patch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niklasf%2Fgit-rebase-patch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niklasf%2Fgit-rebase-patch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niklasf%2Fgit-rebase-patch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/niklasf","download_url":"https://codeload.github.com/niklasf/git-rebase-patch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248633480,"owners_count":21136874,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T13:07:05.043Z","updated_at":"2025-04-12T21:26:24.048Z","avatar_url":"https://github.com/niklasf.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"git rebase-patch\n================\n\n**This tool has been merged into https://github.com/visionmedia/git-extras.\nFuture improvements and bug fixes will be found only there.**\n\nGiven you have a patch that doesn't apply to the current HEAD, but you know it\napplied to some commit in the past, `git rebase-patch` will help you find that\ncommit and do a rebase.\n\nUsage: `git rebase-patch \u003cpatch-file.patch\u003e`\n\n(Note: If the patch has been created with `git format-patch`, it is better and\nmore efficient to use `git am`, because that considers meta information from the\npatch.)\n\nExample\n-------\n\nYou can reroll a patch against the current HEAD like this:\n\n    git rebase-patch old-patch.patch\n\nThat might give you:\n\n    Trying to find a commit the patch applies to...\n    Patch applied to 9d1a78c as 9e22d99\n    [master 4d28217] remove-second-paragraph.patch\n     1 file changed, 2 deletions(-)\n\nNow your latest commit has the changes of your patch. It's message is the patch\nfile name. Then proceed as usual.\n\nReroll the patch:\n\n    git diff HEAD~1 \u003e new-patch.patch\n\nChange the commit message:\n\n    git commit --amend\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniklasf%2Fgit-rebase-patch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fniklasf%2Fgit-rebase-patch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniklasf%2Fgit-rebase-patch/lists"}