How to pull code from BitBucket with C# programmatically

I am writing C# web forms application that needs to pull code for concerned tag on bitbucket.

I have discovered SharpBucket as potential solution. But I am not sure how to pull actual code.

  • Eclipse, Git and Bitbucket - Can't push - Error 401 Unauthorized
  • Bitbucket git delete files
  • Not able to avoid password step in git pull
  • Pull specific branch from git
  • Unable to add ssh-key of EC2 instance to bitbucket account
  • Store https passwords with cygwin's Git
  • It seems that SharpBucket API offers only meta data about repositories. All the the properties in Intelli Sense on the picture are of type string.

    enter image description here

    If SharpBucket can not pull the code, please advise on other options.

  • How do I pull in a new branch from a remote repo?
  • Git - Having a private local “fork”
  • I do commit locally , and all is well , but when I push on GitHub, the commit it comes empty and files are have no changes. Why?
  • Fatal: The remote end hung up unexpectedly
  • What's the Git command to determine which commit changed a submodule pointer?
  • How to use git in R package development?
  • One Solution collect form web for “How to pull code from BitBucket with C# programmatically”

    I use LibGit2Sharp to programmatically access git repositories. Note that you may need to use it in conjunction with SharpBucket if you still want BitBucket-specific functionality.

    Git Baby is a git and github fan, let's start git clone.