{"id":13459757,"url":"https://github.com/git-cloner/gitcache","last_synced_at":"2025-03-24T18:31:21.456Z","repository":{"id":37392662,"uuid":"258925670","full_name":"git-cloner/gitcache","owner":"git-cloner","description":"When clone from github.com, build mirror cache to improve clone speed","archived":false,"fork":false,"pushed_at":"2023-12-18T23:01:43.000Z","size":10333,"stargazers_count":225,"open_issues_count":4,"forks_count":30,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-08-01T10:19:23.265Z","etag":null,"topics":["cache","clone","git","github","go","mirror"],"latest_commit_sha":null,"homepage":"https://gitclone.com","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/git-cloner.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":"2020-04-26T02:59:36.000Z","updated_at":"2024-07-29T05:56:44.000Z","dependencies_parsed_at":"2024-06-18T21:31:51.338Z","dependency_job_id":"95db9472-1adc-4ce8-88d3-64dbfe64c930","html_url":"https://github.com/git-cloner/gitcache","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/git-cloner%2Fgitcache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/git-cloner%2Fgitcache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/git-cloner%2Fgitcache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/git-cloner%2Fgitcache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/git-cloner","download_url":"https://codeload.github.com/git-cloner/gitcache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221995768,"owners_count":16913557,"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":["cache","clone","git","github","go","mirror"],"created_at":"2024-07-31T10:00:28.203Z","updated_at":"2024-10-29T05:31:16.338Z","avatar_url":"https://github.com/git-cloner.png","language":"Go","readme":"# Gitcache\n[中文说明](https://github.com/git-cloner/gitcache/blob/master/README_cn.md)\n\ngithub.com clone cache\n\nuse git http  protocol to proxy git clone.\n\nWhen the local cache does not exist, the clone request is redirected to github.com, and the mirror is created at same time(delay 10 seconds), and it is cloned the next time, then clone from the local mirror .\n\nnew support branch (git clone -b branchname) \n\n## install golang（linux）\n\n```shell\n#download golang,use normal user,don't use sudo\ncurl -O https://dl.google.com/go/go1.14.linux-amd64.tar.gz\ntar -xvf go1.14.linux-amd64.tar.gz\n## install golang\nsudo rm -fr /usr/local/go\nsudo mv go /usr/local\nmkdir goApps\n## init environment variable\necho \"export GOPATH=~/goApps\" \u003e\u003e ~/.profile\necho \"export PATH=\\$PATH:/usr/local/go/bin\" \u003e\u003e ~/.profile\necho \"export PATH=\\$PATH:\\$GOPATH/bin\" \u003e\u003e ~/.profile\n## apply variable\nsource ~/.profile\n```\n\nif you use windows,download from https://golang.google.cn/dl/ and install.\n\n## build\n\n```shell\n#clone\ngit clone https://github.com/git-cloner/gitcache\ncd gitcache\n#linux\nexport GO111MODULE=on\nexport GOPROXY=https://goproxy.cn\n#windows\nset GO111MODULE=on\nset GOPROXY=https://goproxy.io\n#build\ngo build\n```\n\n## run\n\n```shell\n# -b git cahce base path\n#linux\n./gitcache  -b /var/gitcache\n#windows\ngitcache -b d:\\temp\n#important hint\nUsing HTTPS git remote update is very difficult,so you can use ssh,such as\ngitcache -ssh 1 -b /var/gitcache\nbefore use ssh,please config ssh first,and execute\neval $(ssh-agent -s)\nssh-add ~/.ssh/id_rsa\n#database support\nif using database(mysql) support(Not necessary),please set up environment variable\nexport MYSQL_DSN=dbuser:password@tcp(IP:3306)/dbname\n```\n\n \n\n## usage\n\ngit clone http://127.0.0.1:5000/github.com/git-cloner/gitcache\n\ngit clone  http://127.0.0.1:5000/github.com/git-cloner/gitcache -b branch\n\n## homepage\n\nand please try https://gitclone.com/ \n\n## client\n\nyou can use cgit client. https://github.com/git-cloner/gitcache/releases/download/v0.1/cgit-release.zip\n\ncgit clone https://github.com/git-cloner/gitcache\n\n## block chain\n\nuse codechain(chain base on tendermint)\n\n[https://github.com/little51/codechain](https://github.com/little51/codechain)\n","funding_links":[],"categories":["语言资源库","Go"],"sub_categories":["go"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgit-cloner%2Fgitcache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgit-cloner%2Fgitcache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgit-cloner%2Fgitcache/lists"}