Universal.Git 1.0.0

dotnet add package Universal.Git --version 1.0.0
                    
NuGet\Install-Package Universal.Git -Version 1.0.0
                    
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="Universal.Git" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Universal.Git" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Universal.Git" />
                    
Project file
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 Universal.Git --version 1.0.0
                    
#r "nuget: Universal.Git, 1.0.0"
                    
#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 Universal.Git@1.0.0
                    
#: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=Universal.Git&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Universal.Git&version=1.0.0
                    
Install as a Cake Tool

Universal.Git

Universal.Git provides Git repository APIs on Universal.VersionControl.

using Universal.Git;
using Universal.VersionControl;

using GitRepository repository = await GitRepository.InitializeAsync("repository");
ObjectId blob = await repository.WriteBlobAsync("content\n"u8.ToArray());
ObjectId tree = await repository.WriteTreeAsync([
    new GitTreeEntry { Mode = "100644", Name = "file.txt", ObjectId = blob },
]);
GitSignature signature = new()
{
    Name = "A. User",
    Email = "a@example.com",
    When = DateTimeOffset.UtcNow,
};
GitVersionInfo commit = await repository.CommitAsync(
    new GitCommitState
    {
        Tree = tree,
        Author = signature,
        Committer = signature,
        Message = "Initial commit\n",
    },
    new VersionCreationOptions(),
    new VersionReferenceName("refs/heads/main"),
    expectedTarget: null);

Repository data

  • SHA-1 and SHA-256 objects, packs, pack indexes, alternates, bundles, commit graphs, and multi-pack indexes.
  • Direct, symbolic, packed, replacement, shallow, reflog, branch, tag, note, worktree, and submodule state.
  • Index versions 2 through 4, attributes, ignore rules, sparse checkout, status, staging, checkout, restore, reset, clean, move, and remove.
  • Object, tree, revision, history, diff, patch, blame, grep, describe, inspection, and integrity APIs.

History operations

  • Commit, merge, merge-base, pull, rebase, stash, cherry-pick, revert, rerere, bisect, and pruning.
  • Text and binary patches, patch IDs, range diffs, format-patch, mailbox parsing, and am sessions.
  • Archives, fast import/export, reference transactions, signing providers, credential helpers, and hooks.

Transport

  • Local paths and file: URLs.
  • Smart and dumb HTTP and HTTPS.
  • SSH and SCP-style SSH URLs.
  • OpenSSH, PuTTY Plink/Pageant, TortoisePlink, and simple SSH command variants. SSH remotes honor GIT_SSH_COMMAND, GIT_SSH, GIT_SSH_VARIANT, core.sshCommand, and ssh.variant.
  • Git protocol versions 0, 1, and 2 over git: transport.
  • Clone, fetch, push, upload-pack, and receive-pack operations.

Network, object, pack, graph, patch, mailbox, helper, and hook operations expose resource limits and cancellation. Mutable metadata uses lock files or atomic replacement where the repository format permits it.

The package targets .NET Standard 2.0.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
1.0.0 49 9/8/2026

Initial release.