{"id":22654002,"url":"https://github.com/nishidayuya/git-cococo","last_synced_at":"2025-08-24T19:49:37.996Z","repository":{"id":29387001,"uuid":"121540558","full_name":"nishidayuya/git-cococo","owner":"nishidayuya","description":"git cococo: git COmmit COmpletely COmmand output","archived":false,"fork":false,"pushed_at":"2025-05-28T05:17:40.000Z","size":217,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-28T06:24:35.271Z","etag":null,"topics":["git"],"latest_commit_sha":null,"homepage":"https://github.com/nishidayuya/git-cococo","language":"Ruby","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/nishidayuya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null}},"created_at":"2018-02-14T17:37:13.000Z","updated_at":"2025-05-28T05:17:42.000Z","dependencies_parsed_at":"2023-12-31T09:23:04.118Z","dependency_job_id":"4071d506-33c9-4272-ae50-efbbbf994849","html_url":"https://github.com/nishidayuya/git-cococo","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/nishidayuya/git-cococo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nishidayuya%2Fgit-cococo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nishidayuya%2Fgit-cococo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nishidayuya%2Fgit-cococo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nishidayuya%2Fgit-cococo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nishidayuya","download_url":"https://codeload.github.com/nishidayuya/git-cococo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nishidayuya%2Fgit-cococo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270644756,"owners_count":24621332,"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-08-15T02:00:12.559Z","response_time":110,"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"],"created_at":"2024-12-09T09:31:57.404Z","updated_at":"2025-08-15T23:13:13.379Z","avatar_url":"https://github.com/nishidayuya.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `git cococo`: git COmmit COmpletely COmmand output\n\n[![License X11](https://img.shields.io/badge/license-X11-blue.svg)](https://raw.githubusercontent.com/nishidayuya/git-cococo/master/LICENSE.txt)\n[![Latest tag](https://img.shields.io/github/v/tag/nishidayuya/git-cococo)](https://github.com/nishidayuya/git-cococo/tags)\n[![Build Status](https://github.com/nishidayuya/git-cococo/workflows/ubuntu/badge.svg)](https://github.com/nishidayuya/git-cococo/actions?query=workflow%3Aubuntu)\n[![Build Status](https://github.com/nishidayuya/git-cococo/workflows/windows/badge.svg)](https://github.com/nishidayuya/git-cococo/actions?query=workflow%3Awindows)\n[![Build Status](https://github.com/nishidayuya/git-cococo/workflows/macos/badge.svg)](https://github.com/nishidayuya/git-cococo/actions?query=workflow%3Amacos)\n\n## Requirements\n\n* Git\n\n## Installation\n\n`git cococo` is written by shell script. So we can install following:\n\n```console\n$ wget https://raw.githubusercontent.com/nishidayuya/git-cococo/master/exe/git-cococo\n$ chmod a+x git-cococo\n$ mv git-cococo move-to-PATH-env-directory/\n```\n\n## Usage\n\nRun `sed` command and commit changes with re-runnable commit message \"run: git cococo sed -i -e s/foo/bar/g a.txt\".\n\n```console\n$ git cococo sed -i -e s/foo/bar/g a.txt\n```\n\n---\n\nOops! I forgot un-commmitted changes. `git cococo` tells me it and don't run command.\n\n```console\n$ git cococo sed -i -e s/foo/bar/g a.txt\nDetects following uncommitted changes:\n\n     M b.txt\n    ?? c.txt\n\nRun \"git stash\" and retry \"git cococo\":\n\n    $ git stash --include-untracked \u0026\u0026\n      git cococo sed -i -e s/foo/bar/g a.txt \u0026\u0026\n      git stash pop\n\nOr, use \"--autostash\" option:\n\n    $ git cococo --autostash sed -i -e s/foo/bar/g a.txt\n```\n\nReplace `writed` to `wrote` all of git tracked files and commit.\n\n```console\n$ git cococo sh -c 'git ls-files -z | xargs -0 sed -i -e s/writed/wrote/g'\n```\n\n## Examples\n\n### for Rubyists\n\n```console\n$ git cococo --init bundle init\n$ git cococo rbenv local 2.7.0\n$ git cococo bundle add rake\n$ git cococo bundle update nokogiri\n\n$ n=new_awesome_gem \u0026\u0026 git cococo --init=$n bundle gem $n\n\n$ n=blog \u0026\u0026 git cococo --init=$n rails new $n\n$ cd $n\n$ git cococo bin/rails generate scaffold post title body:text published_at:datetime\n$ git cococo bin/rails db:migrate\n```\n\n### for JavaScripters\n\n```console\n$ git cococo --init npm init --yes\n$ git cococo sh -c 'echo /node_modules | tee -a .gitignore'\n$ git cococo npm install --save express\n$ git cococo npm install --save-dev mocha\n```\n\n### for Pythonistas\n\n```console\n$ git cococo --init pyenv local 3.8.1\n$ git cococo touch requirements.txt\n$ git cococo sh -c 'echo /venv | tee -a .gitignore'\n$ python -m venv venv\n$ git cococo sh -ex -c '\n    . venv/bin/activate\n    pip install -r requirements.txt\n    pip install --upgrade pip\n    pip install tensorflow\n    pip freeze | tee requirements.txt\n  '\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/nishidayuya/git-cococo .\n\n## Development\n\n* [Ruby](https://www.ruby-lang.org/): To run `rake` command and tests.\n* [CMake](https://cmake.org/download/): To build rugged.gem for tests.\n* [Shellcheck](https://github.com/koalaman/shellcheck#installing): To run lint.\n\nClone this project.\n\nInstall related RubyGems and run tests and lint:\n\n```console\n$ bundle\n$ bundle exec rake\n```\n\nWrite some changes with tests.\n\nRun tests and lint:\n\n```console\n$ bundle exec rake\n```\n\nSubmit pull-request.\n\nThank you!\n\n### Tools for development\n\n#### To use specified version of Git:\n\n```console\n$ v=2.11.0\n$ ./tools/install_git $v\n$ ./tools/switch_git $v\ngit version 2.11.0\n```\n\n#### To use latest released version of Git:\n\n```console\n$ v=$(./tools/latest_git_version)\n$ ./tools/install_git $v\n$ ./tools/switch_git $v\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnishidayuya%2Fgit-cococo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnishidayuya%2Fgit-cococo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnishidayuya%2Fgit-cococo/lists"}