{"id":15034109,"url":"https://github.com/ruzhila/go-git-server","last_synced_at":"2026-01-02T01:10:23.273Z","repository":{"id":245092708,"uuid":"817224640","full_name":"ruzhila/go-git-server","owner":"ruzhila","description":"A Git http server with Go   only 100 lines of code","archived":false,"fork":false,"pushed_at":"2024-06-19T10:50:25.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-01-20T06:16:45.185Z","etag":null,"topics":["100-line-code","campus-project","git-server","golang-examples","learning-by-doing"],"latest_commit_sha":null,"homepage":"https://ruzhila.cn/?from=github_go_git_server","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ruzhila.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":"2024-06-19T09:13:13.000Z","updated_at":"2024-06-19T10:50:28.000Z","dependencies_parsed_at":"2024-06-19T19:24:56.403Z","dependency_job_id":"fc7a4267-1ebc-4595-a37f-7d509c290f11","html_url":"https://github.com/ruzhila/go-git-server","commit_stats":null,"previous_names":["ruzhila/go-git-server"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruzhila%2Fgo-git-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruzhila%2Fgo-git-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruzhila%2Fgo-git-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruzhila%2Fgo-git-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruzhila","download_url":"https://codeload.github.com/ruzhila/go-git-server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243382783,"owners_count":20282007,"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":["100-line-code","campus-project","git-server","golang-examples","learning-by-doing"],"created_at":"2024-09-24T20:23:58.003Z","updated_at":"2026-01-02T01:10:23.247Z","avatar_url":"https://github.com/ruzhila.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A git-http-server with 100 lines of Golang code\n\nBy [ruzhila.cn](http://ruzhila.cn/?from=github_git_server), a campus for learning backend development through practice.\n\nThis is a tutorial code demonstrating how to use Golang write git server. Pull requests are welcome. 👏\n\n## Features\n- 🚀 Simple and easy to use, not need nginx or fcgiwrap\n- 👏 Support create repository\n- 📦 Only 100 lines of code\n\n## Build from source\n```shell\n$ git clone https://github.com/ruzhila/go-git-server.git\n$ cd go-git-server\n$ go build\n```\n\n## Install from source\n```shell\n$ go install github.com/ruzhila/go-git-server@latest\n# Run the server\n$ go-git-server\n```\n## Usage\n```shell\n$ ./go-git-server -h\nUsage of ./go-git-server:\n  -addr string\n        address to listen on (default \"127.0.0.1:8080\")\n  -create\n        create repository only without serving\n  -prefix string\n        prefix path for git server (default \"/\")\n  -root string\n        root repository path (default \"/tmp/git\")\n\n$ ./go-git-server -addr 127.0.0.1:8080 -root /var/git\n\n# Create a new repository\n$ ./go-git-server -root /var/git -create hellorepos\n\n# Visit the repository\n$ git clone http://127.0.0.1:8080/hellorepos\n$ cd hellorepos\n$ echo \"Hello, Git!\" \u003e README.md\n$ git add README.md\n$ git commit -m \"Initial commit\"\n$ git push origin master\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruzhila%2Fgo-git-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruzhila%2Fgo-git-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruzhila%2Fgo-git-server/lists"}