{"id":18078453,"url":"https://github.com/techgaun/git-squash","last_synced_at":"2025-04-12T11:52:22.537Z","repository":{"id":147048452,"uuid":"305794021","full_name":"techgaun/git-squash","owner":"techgaun","description":"Git squash easy way","archived":false,"fork":false,"pushed_at":"2020-10-22T20:26:21.000Z","size":7,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-26T06:34:36.675Z","etag":null,"topics":["command-line","git","github","squash-and-merge","squash-commits"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/techgaun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-10-20T18:08:24.000Z","updated_at":"2022-09-18T18:03:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"3db96202-adfe-4be9-9245-9671e488cb00","html_url":"https://github.com/techgaun/git-squash","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/techgaun%2Fgit-squash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techgaun%2Fgit-squash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techgaun%2Fgit-squash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techgaun%2Fgit-squash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/techgaun","download_url":"https://codeload.github.com/techgaun/git-squash/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248565021,"owners_count":21125414,"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":["command-line","git","github","squash-and-merge","squash-commits"],"created_at":"2024-10-31T12:14:07.956Z","updated_at":"2025-04-12T11:52:22.509Z","avatar_url":"https://github.com/techgaun.png","language":"Shell","readme":"# git-squash\n\u003e Git squash easy way\n\nThis small script mimics what GitHub's [Squash portion](https://docs.github.com/en/free-pro-team@latest/github/collaborating-with-issues-and-pull-requests/about-pull-request-merges#squash-and-merge-your-pull-request-commits) does for their _Squash and merge_ option on a Pull Request. It basically means you can easily squash all your commits into a single commit with this script without having to deal with finding out the first commit on your current branch that does not exist on the target branch.\n\n## Installation\n\n- Download [git-squash](git-squash) and place it in a path that is in `$PATH`\n\n### Global installation\n\n```shell\nsudo curl https://raw.githubusercontent.com/techgaun/git-squash/main/git-squash -o /usr/local/bin/git-squash \u0026\u0026 sudo chmod +x /usr/local/bin/git-squash\n```\n\n### Local installation\n\nAssuming the local path ($HOME/.bin in this example) is in `$PATH`:\n\n```shell\ncurl https://raw.githubusercontent.com/techgaun/git-squash/main/git-squash -o \"${HOME}\"/.bin/git-squash \u0026\u0026 chmod u+x \"${HOME}\"/.bin/git-squash\n```\n\n## Usage\n\n- Make sure your current branch does not have merge conflicts with target branch\n\n```shell\ngit merge main\ngit squash main\n```\n\n## Authors\n\n- [techgaun](https://github.com/techgaun)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechgaun%2Fgit-squash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechgaun%2Fgit-squash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechgaun%2Fgit-squash/lists"}