Questions tagged [lib2gitsharp]
3 questions
1
vote
1 answer
How to set the active branch using LibGit2Sharp?
I want to create a local branch from master, commit stuff into it and then push the changes to the newly created branch. This is what I did:
string branchname="jodel";
string _repoPath="C:\\gitstuff";
var _author=new Signatur("bot","@bot",…

Ole Albers
- 8,715
- 10
- 73
- 166
1
vote
0 answers
lib2gitsharp mmap permission denied in docker
I'm struggling to get lib2gitsharp (0.27.0-preview-0007) to work in a docker container. Heres a cut-down version of my dockerfile:
FROM mcr.microsoft.com/dotnet/aspnet:5.0-buster-slim AS base
# Normal .net setup
FROM base AS final
ENV…

Chris Surfleet
- 2,462
- 4
- 28
- 40
-1
votes
1 answer
Lib2GitSharp: Git Pull (e.g. git pull origin main)
I'm looking for a code snipping to archive the git pull with Lib2GitSharp. Imagine you are on a branch feature/1 and you want to pull the latest changes from main.
If have the following code up to now:
var mergeOptions = new…

JoJ
- 133
- 1
- 7