matteosister / GitElephant

An abstraction layer for git written in PHP
GNU Lesser General Public License v3.0
613 stars 74 forks source link

git add . #179

Closed servenw closed 2 years ago

servenw commented 2 years ago

how to execute the command "git add ."?

GenieTim commented 2 years ago

Assuming you already have the repository (as described in the README), you can do:

$repo->stage(); // without arguments: stage all