{"id":49885874,"url":"https://github.com/meyer1994/gitserver","last_synced_at":"2026-05-15T18:15:25.719Z","repository":{"id":38384881,"uuid":"292734588","full_name":"meyer1994/gitserver","owner":"meyer1994","description":"A very simple git smart HTTP server","archived":false,"fork":false,"pushed_at":"2025-09-17T23:11:46.000Z","size":36,"stargazers_count":34,"open_issues_count":3,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-18T01:10:55.077Z","etag":null,"topics":["asgi","fastapi","git","git-server","python","uvicorn"],"latest_commit_sha":null,"homepage":"","language":"Python","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/meyer1994.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":"2020-09-04T03:00:03.000Z","updated_at":"2025-09-17T23:11:43.000Z","dependencies_parsed_at":"2023-02-09T04:31:57.222Z","dependency_job_id":"a28851db-b253-4a31-ba61-0d6768f1a484","html_url":"https://github.com/meyer1994/gitserver","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/meyer1994/gitserver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meyer1994%2Fgitserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meyer1994%2Fgitserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meyer1994%2Fgitserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meyer1994%2Fgitserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/meyer1994","download_url":"https://codeload.github.com/meyer1994/gitserver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meyer1994%2Fgitserver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33074575,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["asgi","fastapi","git","git-server","python","uvicorn"],"created_at":"2026-05-15T18:15:24.506Z","updated_at":"2026-05-15T18:15:25.712Z","avatar_url":"https://github.com/meyer1994.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gitserver\n\n[![build](https://github.com/meyer1994/gitserver/actions/workflows/build.yml/badge.svg)](https://github.com/meyer1994/gitserver/actions/workflows/build.yml)\n[![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)\n\nA very simple git [smart HTTP][6] server.\n\n## About\n\nThis was created as a learning experience on how to create, and possibly use,\na custom git server to upload your code. Also to play with some weird ideas...\n\n## Install\n\nWe use [`fastapi`][1] to handle all the HTTP interface and [`uvicorn`][2] as the\n[ASGI][3]\nserver.\n\n```bash\n$ pip install -r requirements.txt\n```\n\n## Usage\n\n```bash\n$ uvicorn app:app\nINFO:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)\n```\n\nNow you have an HTTP git server running on `localhost:8000`. You can push your\ncode to it simply by adding a remote that points to it:\n\n```bash\n$ git remote add local http://localhost:8000/reponame\n# push to it\n$ git push local\n# clone from it\n$ git clone http://localhost:8000/reponame\n```\n\nNote that the username/password is currently 'admin' for both. This is found in the [`gitserver/app.py`](./gitserver/app.py) file,\nand you can edit that file if you'd like to change the username/password.\n\nNote that the directory where the code is saved is created using python's\n`tempfile` module. Which means, when the program exists, or reloads, it **will**\nbe deleted.\n\n## Docker\n\nThere is also a [docker][7] image if you prefer that:\n\n```bash\n$ docker run --rm -it -p 8000:8000 meyer1994/gitserver\n```\n\n## Thanks\n\nThis project would not have been possible without the code in the following\nrepositories. They helped me understand a lot about git http backend.\n\n- [git_http_backend.py][4]\n- [grack][5]\n\n\n[1]: https://fastapi.tiangolo.com/\n[2]: https://uvicorn.org/\n[3]: https://asgi.readthedocs.io/en/latest/index.html\n[4]: https://github.com/dvdotsenko/git_http_backend.py\n[5]: https://github.com/schacon/grack\n[6]: https://www.git-scm.com/book/fa/v2/Git-on-the-Server-Smart-HTTP\n[7]: https://hub.docker.com/repository/docker/meyer1994/gitserver\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeyer1994%2Fgitserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeyer1994%2Fgitserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeyer1994%2Fgitserver/lists"}