{"id":16889432,"url":"https://github.com/dcbaker/git-ck","last_synced_at":"2026-05-09T13:15:57.450Z","repository":{"id":67595724,"uuid":"42680058","full_name":"dcbaker/git-ck","owner":"dcbaker","description":"wrapper for git-checkout which managed uncommited changes","archived":false,"fork":false,"pushed_at":"2015-12-05T01:02:28.000Z","size":16,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-20T07:17:48.958Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dcbaker.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}},"created_at":"2015-09-17T20:25:16.000Z","updated_at":"2015-09-17T21:15:20.000Z","dependencies_parsed_at":"2023-02-26T19:31:27.680Z","dependency_job_id":null,"html_url":"https://github.com/dcbaker/git-ck","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dcbaker/git-ck","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcbaker%2Fgit-ck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcbaker%2Fgit-ck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcbaker%2Fgit-ck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcbaker%2Fgit-ck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcbaker","download_url":"https://codeload.github.com/dcbaker/git-ck/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcbaker%2Fgit-ck/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32820542,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"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-13T16:57:16.108Z","updated_at":"2026-05-09T13:15:57.434Z","avatar_url":"https://github.com/dcbaker.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-ck\nwrapper for git-checkout which managed uncommited changes\n\nThis wrapper will allow you to change branches with uncommitted changes without fear. It will commit staged and unstaged changes as separate commits, which it will restore when you return to that branch.\n\n## Requirements\nIt requires ruby, just ruby, no extra gems required. And obviously git.\nIt was developed against ruby 2.2, but I haven't used any fancy features, so it should work against at least 2.1\n\n## Install\nCopy git-ck to somewhere in your path. For Linux uses a good option is either /usr/local/bin (for system-wide install) or ~/.local/bin (for user-specific install)\n\n## Shell completions\n### Bash\nCopy bash/\\_git_ck them to somewhere bash will source them. Unfortunately this is very OS specific (even between linux distributions there is no consensus)\n\n### Zsh\ncopy the zsh/\\_git-ck file to somewhere in your fpath. For example: ~/.local/share/zsh-completions/.\n\nThen ensure that location is at the head of fpath, add the following to your .zshrc (or somewhere that will be sourced by zshrc)\n\n```zsh\nfpath=(~/.local/share/zsh-completions/ $fpath)\n```\n\n## git hook\nThis repo provides a git hook to prevent git-ck commits from being pushed. Put git/pre-push.rb in \u003crepo\u003e/.git/hooks as \"pre-push\", and they will abort pushing if their conditions are met. Make sure the script is executable and doesn't have a file extension!\n\nTo install this to all repositories for a single user consider something like this:\n```sh\nmkdir -p ~/.local/share/git/hooks\ngit config --global init.templatedir ~/.local/share/git\ncp git/pre-push.rb ~/.local/share/git/hooks/pre-push\n```\nThis will means all new repositories will use the new git hook. You can call ```git init``` again on a repo to use the new hooks.\n\nNote: You can't use this on git-ck itself, since it has commits prefaced with git-ck: and will always fail.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcbaker%2Fgit-ck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcbaker%2Fgit-ck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcbaker%2Fgit-ck/lists"}