{"id":15890630,"url":"https://github.com/dimfeld/git-quicksave","last_synced_at":"2026-07-17T23:41:22.273Z","repository":{"id":80575382,"uuid":"340480487","full_name":"dimfeld/git-quicksave","owner":"dimfeld","description":null,"archived":false,"fork":false,"pushed_at":"2021-02-19T20:37:45.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T17:24:13.285Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/dimfeld.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":"2021-02-19T20:21:16.000Z","updated_at":"2021-02-19T20:37:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"7ef7792f-552b-4015-a939-5cb84e18303b","html_url":"https://github.com/dimfeld/git-quicksave","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dimfeld/git-quicksave","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimfeld%2Fgit-quicksave","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimfeld%2Fgit-quicksave/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimfeld%2Fgit-quicksave/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimfeld%2Fgit-quicksave/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dimfeld","download_url":"https://codeload.github.com/dimfeld/git-quicksave/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimfeld%2Fgit-quicksave/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279012023,"owners_count":26085041,"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-10-12T02:00:06.719Z","response_time":53,"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":[],"created_at":"2024-10-06T07:07:12.512Z","updated_at":"2025-10-12T16:40:17.172Z","avatar_url":"https://github.com/dimfeld.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nWhen experimenting or refactoring code, it's common to go down a path that\ndoesn't work out and want to back out your recent changes. This is, of course,\nmuch easier to do if you have a recent checkpoint or two of changes.\n\nWith that in mind, this is a set of functions to make a videogame-style quicksave feature for git\nthat should assist in that workflow.\n\nThis is definitely a work-in-progress and if you have any ideas for\nways to enhance it, please let me know!\n\nAlso, right now these are only tested with zsh. I plan to support bash and vim\nas well in the future.\n\n# Installation\n\nJust clone the repository and you should be good to go.\n\n```\ngit clone git@github.com:dimfeld/git-quicksave.git\n\n# In .zshrc\nsource git-quicksave/git-quicksave.zsh\n\nalias gqs=git_qs_save\nalias gqr=git_qs_restore\nalias gqc=git_qs_squash\n```\n\n# Usage\n\nRight now there are three functions in this package. This is a new project and hasn't been widely tested yet, so\nI recommend using them with care, but none of the functions are particularly complicated.\n\n`git_qs_save` commits all changed files (tracked and untracked) with a commit message of \"Quicksave\". Any arguments\nwill be appended to the commit message so you can label your quicksaves.\n\n`git_qs_restore` runs `git reset --hard HEAD` to reset to the latest quicksave.\nIt does ask for confirmation unless you pass the `-f` flag.\n\n`git_qs_squash` can save your work more permanently. It finds the latest string of contiguous commits\nwith the word \"Quicksave\" and squashes them together into a single commit. Any arguments will be passed\nto the `git commit` command for the new commit.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimfeld%2Fgit-quicksave","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimfeld%2Fgit-quicksave","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimfeld%2Fgit-quicksave/lists"}