libgit2sharp Questions

3

Solved

I just downloaded the nugget package for libgit2sharp. I am finding it difficult to do even basic operations. I have an existing git repo (both remote and local). I just need to commit new change...
Mcdavid asked 1/8, 2014 at 16:38

4

Solved

Here's the code I'm using to fetch: public static void GitFetch() { var creds = new UsernamePasswordCredentials() {Username = "user", Password = "pass"}; var fetchOpts = new FetchOptions {Cred...
Factoring asked 1/10, 2014 at 15:33

2

Solved

How may I find all commits in a repository that have a specific parent? For example, if I have a commit A, I would like to find all other commits that share the parent with A. What would be the mo...
Katekatee asked 10/5, 2012 at 18:16

3

I want to use labgit2sharp to replace the command -- "git pull“ to pull my code from my gitlab. but it is not successful by using the following code: using (var repo = new Repository(remotePath)) ...
Bubonocele asked 17/3, 2016 at 13:48

5

I am working on a vsix project where I need to get information about a local git directory. I am following this article. When I am using LibGit2Sharp library, I am getting an exception as described...
Gabionade asked 27/1, 2020 at 6:48

3

Solved

For a research project, I've been trying to replicate the graph view present in version control software like SourceTree or TortoiseGit. The graph view I'm trying to implement The biggest proble...
Roseannroseanna asked 14/11, 2017 at 3:4

1

AFAIK, Repository.Commits property return all commits reachable from current branch. I would like to get all possible commits, regardless the branch. I am using the following command : var commitsT...
Indefeasible asked 30/5, 2021 at 17:16

3

Solved

I have an external process that applies changes to files part of a local Git repository initially cloned through libgit2sharp. I would like to perform - through libgit2sharp - the equivalent of the...
Erleena asked 1/4, 2014 at 15:7

1

hopefully someone call help. First off, I am pretty new to git, so forgive me if I make some mistakes in explaining my question. I would like to pull the source code as it exists up to a specific ...
Adaxial asked 14/2, 2020 at 19:59

3

Solved

Recently I've been using git stash many times and I've been thinking that it is really slow, even on a new repository with a single file. I've read this question about git stash slowness and this o...
Uvulitis asked 24/5, 2017 at 13:30

2

Solved

Using git show, I can fetch the contents of a particular file from a particular commit, without changing the state of my local clone: $ git show <file> $ git show <commit>:<file&gt...
Wait asked 12/11, 2018 at 14:38

6

Solved

I have the LINQPad version with NuGet and I add libgit2sharp but this relies on a another (native) dll. I've tried: Copying them my systemdirectory. Put them in a separate directory that I've ad...
Androclinium asked 7/6, 2013 at 11:32

1

I've got a large number of projects all in a single repository. I want to determine the volatility of all of these projects, i.e., when there was last a commit that affected each project. I've got ...
Biron asked 3/12, 2018 at 17:39

2

Solved

Is there an easy way to find all References (e.g. Tags) for a given Commit? For example: using( Repository repo = new Repository( path_to_repo ) ) { foreach( Commit commit in repo.Commits ) { L...
Demulsify asked 21/3, 2014 at 6:51

2

Solved

I'd like to access in-premise TFS server GIT repositories using LibGit2Sharp. So far I'm only playing around with this library, and I can't get it to work as I'd expect it would. My first problem ...
Commingle asked 5/4, 2018 at 11:53

1

My organization runs its own GitHub server and web proxies. I have configured git so that I can work with both github.com and our internal GitHub from the command line. But using LibGit2Sharp, I ca...
Provinciality asked 11/5, 2017 at 19:53

3

Solved

Sometimes I try to read and write to a Git repository at the same time. But afterwards i get the following error message when i try to commit files: An error was raised by libgit2. Category = In...
Itch asked 22/4, 2014 at 20:19

2

Solved

I want to push files from a folder on Azure App Service to a Git repository. I have copied the local git repo up to the server and I'm using LibGit2Sharp to commit and push these files: using (va...
Buckle asked 9/4, 2018 at 15:34

2

Solved

I have a small exe I've written that uses LibGit2Sharp and am trying to use Costura.Fody to embed everything so I only have a single exe to distribute (actually, there are two config files as well,...
Burge asked 2/11, 2017 at 15:57

2

Solved

So using LibGit2Sharp https://github.com/libgit2/libgit2sharp you can walk through the branches like this using (var repo = new Repository(@"path to .git")) { foreach (var branch in repo.Branches...
Cecum asked 11/10, 2012 at 10:18

3

Solved

I need to programmatically get the last author of a specific line in the Git history with C#. I tried using libgit2sharp : var repo = new LibGit2Sharp.Repository(gitRepositoryPath); string relative...
Guttering asked 30/3, 2016 at 13:23

1

Solved

Requirement: Using libgit2sharp I want to pull (fetch + merge) latest from a specific git remote branch to my currently checked out local branch, without having to pass any other argument, like us...
Stinnett asked 19/10, 2017 at 15:30

2

Solved

It's possible to obtain the number of commits behind/ahead using git rev-list command. I am trying to achieve the same thing using libgit2sharp library but the library is not fully documented so I ...
Orchestrate asked 3/10, 2017 at 11:37

2

Solved

When I use libgit2sharp in project to clone repository with ssh-transport protocol, like [email protected]:libgit2/libgit2sharp.git It throw an exception, says "This transport isn't imple...
Subreption asked 16/6, 2014 at 7:59

1

I'm trying to use the library "libgit2sharp" to clone a repository via a SSH key and... I can't find anything... I can clone it via "https" but what I'd like to do is using an SSH key. It's really ...
Graven asked 20/11, 2016 at 2:43

© 2022 - 2024 — McMap. All rights reserved.