{"id":15873783,"url":"https://github.com/berttejeda/bert.git-server","last_synced_at":"2025-08-13T00:32:29.435Z","repository":{"id":176671017,"uuid":"659252877","full_name":"berttejeda/bert.git-server","owner":"berttejeda","description":"Python implementation of a Git Server ","archived":false,"fork":false,"pushed_at":"2024-05-29T21:09:04.000Z","size":41,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-07T19:04:32.523Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/berttejeda.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}},"created_at":"2023-06-27T12:47:24.000Z","updated_at":"2024-12-06T10:41:40.000Z","dependencies_parsed_at":"2024-02-06T03:01:45.695Z","dependency_job_id":null,"html_url":"https://github.com/berttejeda/bert.git-server","commit_stats":null,"previous_names":["berttejeda/bert.git-server"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berttejeda%2Fbert.git-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berttejeda%2Fbert.git-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berttejeda%2Fbert.git-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berttejeda%2Fbert.git-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/berttejeda","download_url":"https://codeload.github.com/berttejeda/bert.git-server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229717754,"owners_count":18113400,"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":[],"created_at":"2024-10-06T01:06:31.764Z","updated_at":"2025-08-13T00:32:29.380Z","avatar_url":"https://github.com/berttejeda.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Overview\n\nA git server implementation written in python.\n\nBased off the amazing work by Stewart Park in this gist: [https://gist.github.com/stewartpark/1b079dc0481c6213def9](https://gist.github.com/stewartpark/1b079dc0481c6213def9).\n\nFeatures:\n\n- Makes any git repository lying below the _search\\_paths_ setting\n  available for `git clone` and `git push` via HTTP using basic authentication\n- Application defaults can be overridden by specifying a configuration file\u003cbr /\u003e\n  Review [etc/config.yaml](etc/config.yaml) for a sample data structure.\n- On-demand repos: If you attempt to push a non-existing repo to the server, it will be created \n- Employs process threading via [gunicorn](https://gunicorn.org/)\n\n## Installation\n\n- Install from pypi.org: `pip install btgitserver`\n- Install directly from git repo: `pip install git+http://www.github.com/berttejeda/bert.git-server.git`\n\n## Usage\n\nTo get usage information and help: `bt.git-server -h`\n\n### Clone paths\n\nThese are the routes accepted by the script:\n\n- '/\u003corg_name\u003e/\u003cproject_name\u003e'\n\nThese routes mirror the directory structure under the git search path(s).\n\n### Authentication\n  \nFor now, the only authentication available is HTTP AUTH BASIC\n\nAs such, the default credentials are:\n\nUsername: `git-user`\nPassword: `git-password`\n\n### Usage Examples\n\n#### Clone a repo\n\n* Create a test org and repo:\n\n```\ncd ~\nmkdir -p /tmp/repos/contoso/test\ncd /tmp/repos/contoso/test\ngit init .\ngit checkout -b main\ntouch test_file.txt\ngit add .\ngit commit -m 'Initial Commit'\ncd ~\nbt.git-server -r /tmp/repos\n```\n\n**Note**: The `--repo-search-paths/-r` cli option allows specifying \nmultiple, space-delimited search paths, e.g. `bt.git-server -r /tmp/repos /tmp/repos2`\n\n* Launch the standalone git server\n\n`bt.git-server`\n\nYou should see output similar to:\n```\nRunning on http://0.0.0.0:5000/\t\n```\n\n* On client-side:\n\nTry cloning the repo you just created via the supported routes:\n\ne.g.\n\t\n```bash\ngit clone http://git-user:git-password@127.0.0.1:5000/contoso/test\n```\n\n#### Push an on-demand repo\n\n```\nmkdir -p foo-bar\ncd foo-bar\ngit init .\ngit remote add origin http://git-user:git-password@127.0.0.1:5000/contoso/foo-bar\ngit checkout -b main\ntouch test_file.txt\ngit add .\ngit commit -m 'Initial Commit'\ngit push --set-upstream origin $(git rev-parse --abbrev-ref HEAD)\n```\n\n## Docker\n\nFor your convenience, a [Dockerfile](Dockerfile) has been provided,\nso feel free to build your own containerized instance of this app, or\nuse the pre-built docker image:\n\n```bash\nmkdir /tmp/repos\ndocker run -it --rm -p 5000:5000 \\\n-v /tmp/repos:/opt/git-server/repos \\\nberttejeda/git-server\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fberttejeda%2Fbert.git-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fberttejeda%2Fbert.git-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fberttejeda%2Fbert.git-server/lists"}