{"id":15751260,"url":"https://github.com/rgl/uselibgit2sharp","last_synced_at":"2025-03-31T07:21:41.044Z","repository":{"id":139753637,"uuid":"376235394","full_name":"rgl/UseLibgit2sharp","owner":"rgl","description":"example application uses the libgit2sharp library to create a local git repository, a commit, and a push to a remote repository","archived":false,"fork":false,"pushed_at":"2023-08-06T08:11:06.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-06T11:56:55.439Z","etag":null,"topics":["csharp","example","git","libgit2","libgit2sharp"],"latest_commit_sha":null,"homepage":"","language":"C#","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/rgl.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":"2021-06-12T08:04:12.000Z","updated_at":"2023-08-05T20:14:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"10cb7860-081c-4626-b227-e26ccd1c53ce","html_url":"https://github.com/rgl/UseLibgit2sharp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2FUseLibgit2sharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2FUseLibgit2sharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2FUseLibgit2sharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2FUseLibgit2sharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rgl","download_url":"https://codeload.github.com/rgl/UseLibgit2sharp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246429468,"owners_count":20775813,"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":["csharp","example","git","libgit2","libgit2sharp"],"created_at":"2024-10-04T07:01:16.579Z","updated_at":"2025-03-31T07:21:41.021Z","avatar_url":"https://github.com/rgl.png","language":"C#","readme":"# About\n\n[![Build](https://github.com/rgl/UseLibgit2sharp/actions/workflows/build.yml/badge.svg)](https://github.com/rgl/UseLibgit2sharp/actions/workflows/build.yml)\n\nThis example application uses the [libgit2sharp library](https://github.com/libgit2/libgit2sharp) to create a local git repository, a commit, and a push to a remote repository.\n\n## Usage (Ubuntu 22.04)\n\nInstall [docker](https://github.com/moby/moby) and [docker compose](https://github.com/docker/compose).\n\nBuild and start the local gitea git server:\n\n```bash\ndocker compose down --remove-orphans --volumes\ndocker compose up --build\n```\n\nIn another shell, build and execute the example application:\n\n```bash\ndotnet run # or: docker compose run --build test\n```\n\nList the local repository log:\n\n```bash\ngit --git-dir tmp/test/.git log --oneline\n```\n\nObserve the remote repository:\n\nhttp://localhost:3000/jane.doe/test\n\nDestroy everything:\n\n```bash\ndocker compose down --remove-orphans --volumes\n```\n\n## Reference\n\n* [LibGit2Sharp Hitchhiker's Guide to Git](https://github.com/libgit2/libgit2sharp/wiki/LibGit2Sharp-Hitchhiker%27s-Guide-to-Git)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgl%2Fuselibgit2sharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frgl%2Fuselibgit2sharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgl%2Fuselibgit2sharp/lists"}