CodeLogic.GitHelper
4.0.4
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package CodeLogic.GitHelper --version 4.0.4
NuGet\Install-Package CodeLogic.GitHelper -Version 4.0.4
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CodeLogic.GitHelper" Version="4.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CodeLogic.GitHelper" Version="4.0.4" />
<PackageReference Include="CodeLogic.GitHelper" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CodeLogic.GitHelper --version 4.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CodeLogic.GitHelper, 4.0.4"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CodeLogic.GitHelper@4.0.4
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CodeLogic.GitHelper&version=4.0.4
#tool nuget:?package=CodeLogic.GitHelper&version=4.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
CodeLogic.GitHelper
Git repository management library for CodeLogic applications, powered by LibGit2Sharp.
Install
dotnet add package CodeLogic.GitHelper
Quick Start
var gitLib = new GitHelperLibrary();
// After library initialization via CodeLogic framework:
var repo = await gitLib.GetRepositoryAsync("Default");
var info = await repo.GetRepositoryInfoAsync();
Console.WriteLine($"Branch: {info.Value!.CurrentBranch}, Dirty: {info.Value.IsDirty}");
var status = await repo.GetStatusAsync();
await repo.CommitAsync(new CommitOptions { Message = "Update config" });
Features
- Clone, fetch, pull, push — full remote workflow with HTTPS and SSH authentication
- Branch management — list, checkout, and inspect branches (local and remote)
- Commit and status — stage changes, commit with metadata, and query working-tree status
- Batch operations —
FetchAllAsyncandGetAllStatusAsyncacross all configured repositories - Repository caching — configurable in-memory cache with automatic eviction
Configuration
Config file: config.githelper.json
{
"Enabled": true,
"BaseDirectory": "",
"DefaultTimeoutSeconds": 300,
"MaxConcurrentOperations": 3,
"EnableRepositoryCaching": true,
"CacheTimeoutMinutes": 30,
"Repositories": [
{
"Id": "Default",
"Name": "My Repository",
"RepositoryUrl": "https://github.com/username/repository.git",
"LocalPath": "my-repo",
"DefaultBranch": "main",
"Username": null,
"Password": null,
"AutoFetch": false,
"AutoFetchIntervalMinutes": 0,
"TimeoutSeconds": 300
}
]
}
Documentation
Full API docs: https://github.com/Media2A/CodeLogic.Libs
Requirements
- .NET 10.0+
- CodeLogic 3.x or 4.x
- LibGit2Sharp 0.30+
License
MIT — see LICENSE
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- CodeLogic (>= 3.2.0 && < 5.0.0)
- LibGit2Sharp (>= 0.30.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.5.2 | 88 | 5/24/2026 |
| 4.5.1 | 107 | 5/24/2026 |
| 4.5.1-preview.56 | 80 | 5/24/2026 |
| 4.4.2-preview.53 | 45 | 5/24/2026 |
| 4.4.1 | 90 | 5/24/2026 |
| 4.0.5 | 91 | 5/15/2026 |
| 4.0.4 | 93 | 5/9/2026 |
| 4.0.3 | 99 | 5/9/2026 |
| 4.0.1 | 387 | 4/26/2026 |
| 3.3.1 | 481 | 4/18/2026 |
| 3.3.0 | 103 | 4/18/2026 |
| 3.2.11 | 113 | 4/18/2026 |
| 3.2.10 | 94 | 4/18/2026 |
| 3.2.9 | 99 | 4/18/2026 |
| 3.2.8 | 92 | 4/18/2026 |
| 3.2.7 | 92 | 4/18/2026 |
| 3.2.6 | 97 | 4/18/2026 |
| 3.2.5 | 99 | 4/18/2026 |
| 3.2.4 | 96 | 4/17/2026 |
| 3.2.3 | 99 | 4/17/2026 |
Loading failed