{"id":34143193,"url":"https://github.com/dfang/xgit","last_synced_at":"2026-03-09T23:03:32.217Z","repository":{"id":172225778,"uuid":"637615468","full_name":"dfang/xgit","owner":"dfang","description":"git wrapper","archived":false,"fork":false,"pushed_at":"2023-09-04T04:35:06.000Z","size":37,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-12T18:38:57.933Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/dfang.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-05-08T03:33:41.000Z","updated_at":"2023-09-18T05:57:13.000Z","dependencies_parsed_at":"2024-04-15T22:19:03.094Z","dependency_job_id":null,"html_url":"https://github.com/dfang/xgit","commit_stats":null,"previous_names":["dfang/xgit","dfang/cgit"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/dfang/xgit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfang%2Fxgit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfang%2Fxgit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfang%2Fxgit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfang%2Fxgit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dfang","download_url":"https://codeload.github.com/dfang/xgit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfang%2Fxgit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30315987,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T20:05:46.299Z","status":"ssl_error","status_checked_at":"2026-03-09T19:57:04.425Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2025-12-15T03:18:17.960Z","updated_at":"2026-03-09T23:03:32.196Z","avatar_url":"https://github.com/dfang.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# README\n\n让`git clone`更方便。 \n\n在梯子临时不好使了，或者还没来得及装梯子的环境中，想临时克隆下github仓库可以试试这个  \n或者经常需要克隆仓库，这个也很方便  \n\n运行 `xgit clone \u003cuser\u003e/\u003crepo\u003e` 就可以了, 对比正常的`git clone https://github.com/\u003cuser\u003e/\u003crepo\u003e`, `git`换成`xgit`， `https://github.com`都可以不用输了  \n\n如果需要指定克隆到哪里. `xgit clone \u003cuser\u003e/\u003crepo\u003e /tmp/\u003crepo\u003e`\n\n## install\n\n三种方式任选一种\n\n```\ncurl -sf http://goblin.run/github.com/dfang/xgit | sh\n\ncurl -sf https://raw.githubusercontent.com/dfang/xgit/master/scripts/install.sh | sh\n\ngo install github.com/dfang/xgit@latest\n```\n\n## run\n\n三种格式都支持\n\n```\nxgit clone golang/go\nxgit clone github.com/golang/go\nxgit clone https://github.com/golang/go\n\n```\n\nby default, `--depth=1` is added to `xgit clone`, you have to run `git fetch --unshallow` to get all old commits if you want after clone is done.\n\nyou can `--no-depth=` to skip `--depth=1`.\n\neg. `xgit clone https://github.com/golang/go` or `xgit clone golang/go`\n\n\nif you want to change url for remote after:\n\n```\ngit remote -v\ngit remote set-url origin \u003cORIGIN GITHUB LINK\u003e\ngit remote -v\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdfang%2Fxgit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdfang%2Fxgit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdfang%2Fxgit/lists"}