How to implement pull request from remote git repository

187 views
Skip to first unread message

Zhuang Miao

unread,
Apr 26, 2013, 2:12:49 AM4/26/13
to gits...@googlegroups.com
I can't found PullCommand implement in gitsharp,but,I found a FetchCommand.
now,I write the following code to perform  FetchCommand. but not any effect.
  
           var rep= GitHelper.OpenRepository(ENV.GitDBLocation);
           FetchCommand f = new FetchCommand();
           f.Repository = rep;
           f.Execute();

 Could you tell me how can I get remote git code? thanks !

Dinis Cruz

unread,
Apr 26, 2013, 6:31:52 AM4/26/13
to gits...@googlegroups.com
Hi, I used to use GitSharp but couldn't really get it to work. Here is how I used NGIT to write extension method that does a pull:


In that API_NGit file you will also find methods that do inits, clones, pushes, pulls and commits

I wrote a couple blog posts on how I'm now using NGit to have native support to the web app I'm working on (which can also be deployed to Azure): http://blog.diniscruz.com/search/label/NGit

Dinis
Reply all
Reply to author
Forward
0 new messages