Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 511
Joannes Vermorel Avatar asked Dec 06 '22 02:12

Joannes Vermorel


1 Answers

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

Commands.Stage(repo, "*");
like image 162
Anik Saha Avatar answered Dec 11 '22 12:12

Anik Saha