{"id":15762073,"url":"https://github.com/harshkapadia2/git-server","last_synced_at":"2026-04-29T14:05:32.506Z","repository":{"id":177697760,"uuid":"659547472","full_name":"HarshKapadia2/git-server","owner":"HarshKapadia2","description":"A simple self-hosted Git server.","archived":false,"fork":false,"pushed_at":"2023-07-02T17:34:16.000Z","size":7,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-22T07:37:11.494Z","etag":null,"topics":["git","git-server"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HarshKapadia2.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":"2023-06-28T04:27:38.000Z","updated_at":"2024-06-25T17:44:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"3fa2ebd0-9d4c-40e2-807f-fb26c5df022a","html_url":"https://github.com/HarshKapadia2/git-server","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"32ab833c5b42266e9b3662efdbdebfe39d224708"},"previous_names":["harshkapadia2/git-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/HarshKapadia2/git-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HarshKapadia2%2Fgit-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HarshKapadia2%2Fgit-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HarshKapadia2%2Fgit-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HarshKapadia2%2Fgit-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HarshKapadia2","download_url":"https://codeload.github.com/HarshKapadia2/git-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HarshKapadia2%2Fgit-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32428624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T13:34:34.882Z","status":"ssl_error","status_checked_at":"2026-04-29T13:34:29.830Z","response_time":110,"last_error":"SSL_read: 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":["git","git-server"],"created_at":"2024-10-04T11:06:32.451Z","updated_at":"2026-04-29T14:05:32.485Z","avatar_url":"https://github.com/HarshKapadia2.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git Server\n\nA simple self-hosted Git server (SSH access only).\n\n## Setup Instructions\n\n-   Clone this repository\n\n    ```bash\n    $ git clone https://github.com/HarshKapadia2/git-server.git\n    ```\n\n-   Run the [`setup` script](setup).\n\n    ```bash\n    $ cd git-server/\n    $ ./setup --pwd \u003cvalue\u003e --default-branch \u003cbranch_name\u003e\n    # Or\n    $ ./setup --help\n    ```\n\n\u003e NOTE:\n\u003e\n\u003e -   The Git server lives in a new user (and group) called `git`.\n\u003e -   Repositories have to be created in `/srv/git` **by the `git` user**.\n\u003e -   Currently, only SSH access is supported.\n\n## Script Arguments\n\nThe [`setup` script](setup) arguments\n\n-   `--pwd \u003cvalue\u003e`\n    -   Password for the Git server account. Used for SSH as well.\n    -   Value: A string. An empty string is not allowed.\n    -   Requirement: Always\n-   `--default-branch \u003cbranch_name\u003e`\n    -   Optionally specify the default branch that Git should use for the initial branch.\n    -   Value: A string. Default value is `master`.\n    -   Requirement: Optional\n-   `--help`\n    -   Print this command usage instruction.\n    -   Value: No value should be entered.\n    -   Requirement: Optional\n\n## Adding New Repositories\n\n-   Access the Git server and switch to the `git` user.\n\n    ```bash\n    $ ssh git@server_hostname\n    ```\n\n-   Create a new directory in `/src/git` with the name of the repository appended with a `.git`.\n\n    ```bash\n    $ mkdir /srv/git/repo_name.git\n    ```\n\n-   Inside the newly created directory, create a bare Git repository.\n\n    ```bash\n    $ cd /srv/git/repo_name.git\n    $ git init --bare\n    ```\n\n## Resources\n\n-   [How to Create Your Own Git Server](https://www.inmotionhosting.com/support/website/git/git-server)\n-   [Git internals](https://git.harshkapadia.me)\n-   Bare Git repositories\n    -   [What is a bare repository and why would I need one?](https://stackoverflow.com/questions/37992400/what-is-a-bare-repository-and-why-would-i-need-one)\n    -   [all about \"bare\" repos -- what, why, and how to fix a non-bare push](https://htmlpreview.github.io/?https://github.com/sitaramc/sitaramc.github.com/blob/dce410b2a2804723676db9cabd7bb506b6d9ba05/concepts/bare.html)\n    -   [What's the -practical- difference between a Bare and non-Bare repository?](https://stackoverflow.com/questions/5540883/whats-the-practical-difference-between-a-bare-and-non-bare-repository)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharshkapadia2%2Fgit-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharshkapadia2%2Fgit-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharshkapadia2%2Fgit-server/lists"}