Search code examples
.netgitlibgit2sharp

How to do 'git add *' with libgit2sharp?


I have an external process that applies changes to files part of a local Git repository initially cloned through libgit2sharp. I would like to perform - through libgit2sharp - the equivalent of the command git add *, followed by git commit -m "Hello World". The documentation of the Repository class is thin on this.

How can it be done?


Solution

  • In 2020 the code structure has been changed. Now its like==>

    Commands.Stage(repo, "*");