{"id":16293784,"url":"https://github.com/axetroy/git-clone-cli","last_synced_at":"2025-04-09T11:14:07.540Z","repository":{"id":145997412,"uuid":"79478599","full_name":"axetroy/git-clone-cli","owner":"axetroy","description":"一个cli工具，代替git clone","archived":false,"fork":false,"pushed_at":"2023-11-25T14:04:33.000Z","size":49,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-15T05:15:24.869Z","etag":null,"topics":["cli","cli-git","git-clone"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/axetroy.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}},"created_at":"2017-01-19T17:44:07.000Z","updated_at":"2023-02-14T03:25:29.000Z","dependencies_parsed_at":"2023-11-25T15:22:12.361Z","dependency_job_id":null,"html_url":"https://github.com/axetroy/git-clone-cli","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axetroy%2Fgit-clone-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axetroy%2Fgit-clone-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axetroy%2Fgit-clone-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axetroy%2Fgit-clone-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/axetroy","download_url":"https://codeload.github.com/axetroy/git-clone-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248027412,"owners_count":21035594,"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":["cli","cli-git","git-clone"],"created_at":"2024-10-10T20:12:21.018Z","updated_at":"2025-04-09T11:14:07.512Z","avatar_url":"https://github.com/axetroy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 一个cli工具，代替git clone\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/axetroy/git-clone-cli.svg)](https://greenkeeper.io/)\n\n克隆一个项目，一个作者，一个项目目录\n\n**No longer Maintained** 项目已经不再维护，有更好的 repository Manage, [gpmx](https://github.com/axetroy/gpm) or [projj](https://github.com/popomore/projj)\n\n# Install\n```bash\nnpm install @axetroy/git-clone -g\n```\n\n# Usage\n\n```bash\n  Usage: git-clone \u003crepo\u003e [options]\n\n  a cli tool for pull github repo\n\n  Options:\n\n    -h, --help                output usage information\n    -V, --version             output the version number\n    -v, --verbose             更加详细\n    -q, --quiet               更加安静\n    --progress                更加详细\n    --bare                    创建一个纯仓库\n    --mirror                  创建一个镜像仓库（也是纯仓库）\n    -l, --local               从本地仓库克隆\n    --recursive               在克隆时初始化子模组\n    -j, --jobs \u003cn\u003e            并发克隆的子模组的数量\n    -c, --config \u003ckey=value\u003e  在新仓库中设置配置信息\n    -4, --ipv4                只使用 IPv4 地址\n    -6, --ipv6                只使用 IPv6 地址\n\n```\n\n### Why we need this?\n\n因为我发现当项目多了之后，很容易搞混乱，参考go的包管理方式，根据作者进行分类。\n\n毕竟我是手痒，到处见好玩的就clone的人:(\n\n### How it work?\n\n1. 向上查找拥有者的目录，比如目录@axetroy，查找至根目录，如果没有，则在当前工作目录创建\n2. 查找在拥有者目录中，是否已存在该项目\n\n  2.1. 如果没有，则\n  \n  2.2. 如果有，则询问是否要替换\n  \n3. 克隆项目至一个临时的缓存目录\n4. 复制克隆的项目到最终目录\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxetroy%2Fgit-clone-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faxetroy%2Fgit-clone-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxetroy%2Fgit-clone-cli/lists"}