Questions tagged [ngit]

NGit is a semi-automated port of JGit for .NET and mono

NGit is a semi-automated port of JGit for .NET and mono.

It is periodically synchronized with JGit using Sharpen with the aid of some patches to the original Java code and generated C# code.

It is maintained by the Mono team.

Its source is available at GitHub, and it can be imported into your Visual Studio project via NuGet.

22 questions
0
votes
1 answer

Clone a GIT repository with NGit in VB.net

My objective is to perform clone and pull operations on a GIT repository through .NET code. When cloning, I specifically want to clone a particular branch. If a particular repository is already cloned but with a different branch, then I would like…
Shiridish
  • 4,942
  • 5
  • 33
  • 64
0
votes
1 answer

How to get actual tag with NGit?

I need to know the current tag with NGit in a detached branch (after a git checkout tagname) I have tried to list Git tags with foreach(var tag in git.GetRepository().GetTags()){ } but I was unable to find how to relate this tag with the last…
TlmaK0
  • 3,578
  • 2
  • 31
  • 51
0
votes
1 answer

CleanCommand parameters are missing

Using NGit I need to run git clean command equivalent to the following CLI command: git clean -f -d But there are no such options as force or clean directories in CleanCommand class. What's the best workaround here?
alexey
  • 8,360
  • 14
  • 70
  • 102
0
votes
1 answer

How to get list of tags with NGit

I'm using NGit and I want to get a list of all tags of my current working branch. So I created a NGit instance like this: var git = Git.Open("c:\\temp\\projectx"); Now I want to get a list of all tags in the git archive, but how? There is no command…
0
votes
1 answer

NGit/Nsch Generating SSH Keypair (c# Jgit)

I am wanting to generate a new keypair for use with Ngit (Jgit). How do I generate a new keypair through code?
Doug
  • 6,460
  • 5
  • 59
  • 83
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
1
2