{"id":20592433,"url":"https://github.com/valodim/git-fixup","last_synced_at":"2025-07-27T19:34:51.931Z","repository":{"id":138951705,"uuid":"92582737","full_name":"Valodim/git-fixup","owner":"Valodim","description":"git script to automatically create simple fixup commits from currently staged changes","archived":false,"fork":false,"pushed_at":"2022-10-07T09:31:59.000Z","size":10,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-03T05:24:35.080Z","etag":null,"topics":["git","git-deps","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/Valodim.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-27T08:07:46.000Z","updated_at":"2022-10-07T09:32:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"81ea18d1-2a44-413b-910e-47d7ed2b7af3","html_url":"https://github.com/Valodim/git-fixup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Valodim/git-fixup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Valodim%2Fgit-fixup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Valodim%2Fgit-fixup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Valodim%2Fgit-fixup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Valodim%2Fgit-fixup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Valodim","download_url":"https://codeload.github.com/Valodim/git-fixup/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Valodim%2Fgit-fixup/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267414357,"owners_count":24083597,"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","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["git","git-deps","python"],"created_at":"2024-11-16T07:43:57.330Z","updated_at":"2025-07-27T19:34:51.884Z","avatar_url":"https://github.com/Valodim.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## NOTE\n\nThis repository is just a historical note. [git-absorb](https://github.com/tummychow/git-absorb) is the same idea as git-fixup, but finished and maintained.\n\n## OLD README\n\n`git fixup` is one of the few tools that made it from \"hey wouldn't this be neat\" into my actual daily git workflow.\n\nInvocation\n-\n\nIn a nutshell:\nCalling `git fixup` with no arguments will consider the currently staged changes in the index, and look for commits since master that these changes depend on.\nIf there is only a single such commit, it will create a fixup-commit for it.\n\nThis is super helpful in situations where a change should be part of *some* earlier commit in the current working branch, typically fixing a typo or similar, but you don't particularly care *which* commit.\nThe practical workflow is as such:\n\n```\n# working on some feature branch\ngit checkout -b feature-branch\n\n# extensive hacking\n\ngit add .\ngit commit -m 'example commit'\n\n# hacking on other stuff, producing more commits\n\n# shit, there is a typo (or similar small thing) that should be different in some previous commit\n\n# fix typo, then stage only the relevant part\ngit add -p\n# automatically create fixup commit\ngit fixup\n\n# some time later, before push (I have a binding for this in tig)\ngit rebase --autosquash master\n```\n\nThe script itself is very small, and all the dependency detection is done by the wonderful [git deps](https://github.com/aspiers/git-deps) by [@aspiers](https://github.com/aspiers).\nFor simplicity, a stripped down version of the git-deps script is included in this repository, missing the webserving parts.\n\nInstallation\n-\n\nInstall the single dependency for `git-deps`:\n\n`apt-get install python-pygit2`\n\nAfter that, simply drop git-deps and git-fixup somewhere into your PATH, and make sure to run `chmod +x` on them.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalodim%2Fgit-fixup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvalodim%2Fgit-fixup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalodim%2Fgit-fixup/lists"}