Questions tagged [gitsharp]

GitSharp is an implementation of Git for the .NET Framework and Mono.

GitSharp is an implementation of Git for the .NET Framework and Mono.

It is a manual port of JGit, with higher level API added on top of the core API.

It is aimed to be fully compatible to the original Git and shall be a light-weight library for applications that are based on Git as their object database or are reading or manipulating repositories in some way.

12 questions
19
votes
4 answers

GitSharp vs NGit

What is the current state of GitSharp and NGit and which one is better suited for Git automation from .NET?
serega
  • 564
  • 1
  • 5
  • 14
6
votes
1 answer

How can I get file binary data out of Git repository using LibGit2Sharp?

I have decided to try and migrate my project from using GitSharp to LibGit2Sharp since GitSharp is no longer actively maintained. With GitSharp I was able to access the raw bytes of any file checked into my repo given a branch. I cannot locate any…
Nick
  • 19,198
  • 51
  • 185
  • 312
2
votes
1 answer

Can GitSharp return a Leaf (blob) object directly given the leaf's hash?

I noticed that I can get the contents of a particular Leaf (blob) object from a specific branch by iterating over a Tree's children like so: _repository = new Repository(git_url); IEnumerable currentBranchItems =…
Nick
  • 19,198
  • 51
  • 185
  • 312
2
votes
1 answer

Breaking change in LibGitSharp v0.17

I am new to libgit sharp library. I have a line of code that works with v0.15 of libgit sharp. I have updated the package to the latest version 0.22. Repository.Network.FetchHeads.FirstOrDefault() FetchHeads is deprecated in v0.17…
Sabby62
  • 1,707
  • 3
  • 24
  • 37
2
votes
3 answers

Advantages that Git# (GitSharp) will bring over current alternatives on Windows?

With their August 2010 release (they have a very clean road-map on their site), what are the advantages Git# (or GitSharp) and applications based on it have over current alternatives on Windows? I mean advantages that could not have been possible…
Jungle Hunter
  • 7,233
  • 11
  • 42
  • 67
1
vote
0 answers

GitSharp cannot find cloned bare repository

I have created a bare clone of a Git repository and placed it on a shared network drive. I am trying to open this bare repository from GitSharp. I used the following command to clone the repository: $ git clone --bare my_project…
Nick
  • 19,198
  • 51
  • 185
  • 312
1
vote
1 answer

gitsharp clone http protocol failed, but git protocol success! why?

i use gitsharp, when i want to clone project by http protocol, i will disappear "cannot Read available refs" but when i use git protocol to clone the same project frome git hub, it success!
phnix
  • 135
  • 1
  • 7
1
vote
1 answer

Create new repo in Github Server from C#

I need a help to create new git repo in github(Web) from my C#. I have already used lib2gitsharp dll to communicate to Github but where I can create a repo in local (i.e. kind of working copy) not sure how to create the same in Web / remote server.
1
vote
2 answers

Using GitSharp to PUSH changes

How can GitSharp (Git for .NET and Mono) be used to PUSH changes changes to a remote server over SSH?
ccook
  • 5,869
  • 6
  • 56
  • 81
1
vote
1 answer

NGIT/JGIT/Git# SSH Session with private key to Clone GiT repository

The session part connections with the private key, no problem. However when I do a git Clone, it gives the error 'Auth Fail'. How do I wrap, bind or make the connected session work with git clone. I'm using NGIT under .NET 4.0, but don't think this…
Gavin
  • 29
  • 3
0
votes
1 answer

Getting the size of a clone with NGit

Is it possible to use NGit to clone repository, but get the size of a repo before you simply "download it"? I am trying to build a client, and I'd like to actually display progress or have the option of cancelling it if its too huge. Is there a way…
Doug
  • 6,460
  • 5
  • 59
  • 83
0
votes
1 answer

How to use Ls-Remote in NGit

I am looking to do the following using NGit, but after nearly a full day am completely lost: Create an empty repo Add a remote "origin" using a URL and credentials Run Ls-Remote to get the latest hashes of the master branch on origin If anyone…
Doug
  • 6,460
  • 5
  • 59
  • 83