0

I want to git pull when my apllication start in folder. After that I take all dlls from this directory.

C:\TESTS\front-tests

I do not know how to implement this problem, so sorry that I do not have code. I asking for simple code of pull request.

Sowiarz
  • 1,071
  • 2
  • 13
  • 27
  • 1
    Googling "C# git" gives a coupe of good hits, do you have problems with any of those solutions? – nvoigt Aug 25 '14 at 08:42
  • I asking only for sample code which I can modify to my needs. I have no idea how to start with LibGit2Sharp. – Sowiarz Aug 25 '14 at 09:03

1 Answers1

2

From you're question, it looks like you're after the repo.Network.Pull() method from LibGit2Sharp.

Basically, Pull automatically performs a Fetch (retrieving the new commits from the upstream repository) and a Merge. As such, the method accepts a PullOptions optional parameter which allows one to tweak the process (see PullOptions, FetchOptions and MergeOptions).

In order to get started, one may take a look at the Pull() unit tests in NetworkFixture.cs.

nulltoken
  • 64,429
  • 20
  • 138
  • 130